| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.11 2020/12/05 12:08:55 nia Exp $ | | 1 | # $NetBSD: Makefile,v 1.12 2020/12/12 02:25:36 gutteridge Exp $ |
2 | | | 2 | |
3 | DISTNAME= mozjs78_78.4.0.orig | | 3 | DISTNAME= mozjs78_78.4.0.orig |
4 | PKGNAME= ${DISTNAME:S/_/-/:S/.orig//} | | 4 | PKGNAME= ${DISTNAME:S/_/-/:S/.orig//} |
5 | CATEGORIES= lang | | 5 | CATEGORIES= lang |
6 | MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs78/ | | 6 | MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs78/ |
7 | EXTRACT_SUFX= .tar.xz | | 7 | EXTRACT_SUFX= .tar.xz |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-78-0 | | 10 | HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-78-0 |
11 | COMMENT= SpiderMonkey JavaScript library (78.x branch) | | 11 | COMMENT= SpiderMonkey JavaScript library (78.x branch) |
12 | LICENSE= mpl-1.1 | | 12 | LICENSE= mpl-1.1 |
13 | | | 13 | |
14 | WRKSRC= ${WRKDIR}/firefox-${PKGVERSION_NOREV} | | 14 | WRKSRC= ${WRKDIR}/firefox-${PKGVERSION_NOREV} |
| @@ -34,26 +34,28 @@ CONFIGURE_ARGS+= --enable-strip | | | @@ -34,26 +34,28 @@ CONFIGURE_ARGS+= --enable-strip |
34 | CONFIGURE_ARGS+= --with-intl-api | | 34 | CONFIGURE_ARGS+= --with-intl-api |
35 | # --disable-optimize | | 35 | # --disable-optimize |
36 | # For rustc/cargo detection | | 36 | # For rustc/cargo detection |
37 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} | | 37 | CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} |
38 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} | | 38 | CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} |
39 | | | 39 | |
40 | .include "../../mk/bsd.prefs.mk" | | 40 | .include "../../mk/bsd.prefs.mk" |
41 | | | 41 | |
42 | .if ${MACHINE_ARCH} == "i386" | | 42 | .if ${MACHINE_ARCH} == "i386" |
43 | # 64 bit atomics | | 43 | # 64 bit atomics |
44 | CXXFLAGS+= -march=i586 | | 44 | CXXFLAGS+= -march=i586 |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
| | | 47 | # XXX This does not work entirely correctly at present. There are |
| | | 48 | # 26 atomic type test failures on powerpc, where these pass on i386. |
47 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) | | 49 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc) |
48 | # 64 bit atomics | | 50 | # 64 bit atomics |
49 | .include "../../devel/libatomic/buildlink3.mk" | | 51 | .include "../../devel/libatomic/buildlink3.mk" |
50 | .endif | | 52 | .endif |
51 | | | 53 | |
52 | SUBST_CLASSES+= conf | | 54 | SUBST_CLASSES+= conf |
53 | SUBST_STAGE.conf= pre-configure | | 55 | SUBST_STAGE.conf= pre-configure |
54 | SUBST_MESSAGE.conf= Set variables in configuration file. | | 56 | SUBST_MESSAGE.conf= Set variables in configuration file. |
55 | SUBST_FILES.conf+= js/moz.configure | | 57 | SUBST_FILES.conf+= js/moz.configure |
56 | SUBST_VARS.conf= PREFIX | | 58 | SUBST_VARS.conf= PREFIX |
57 | | | 59 | |
58 | PKGCONFIG_OVERRIDE+= js/src/build/js.pc.in | | 60 | PKGCONFIG_OVERRIDE+= js/src/build/js.pc.in |
59 | PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in | | 61 | PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in |