Sat Dec 12 02:25:36 2020 UTC ()
mozjs78: note powerpc atomic support is incomplete


(gutteridge)
diff -r1.11 -r1.12 pkgsrc/lang/mozjs78/Makefile

cvs diff -r1.11 -r1.12 pkgsrc/lang/mozjs78/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/mozjs78/Makefile 2020/12/05 12:08:55 1.11
+++ pkgsrc/lang/mozjs78/Makefile 2020/12/12 02:25:36 1.12
@@ -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
3DISTNAME= mozjs78_78.4.0.orig 3DISTNAME= mozjs78_78.4.0.orig
4PKGNAME= ${DISTNAME:S/_/-/:S/.orig//} 4PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
5CATEGORIES= lang 5CATEGORIES= lang
6MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs78/ 6MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs78/
7EXTRACT_SUFX= .tar.xz 7EXTRACT_SUFX= .tar.xz
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-78-0 10HOMEPAGE= https://packages.debian.org/bullseye/libmozjs-78-0
11COMMENT= SpiderMonkey JavaScript library (78.x branch) 11COMMENT= SpiderMonkey JavaScript library (78.x branch)
12LICENSE= mpl-1.1 12LICENSE= mpl-1.1
13 13
14WRKSRC= ${WRKDIR}/firefox-${PKGVERSION_NOREV} 14WRKSRC= ${WRKDIR}/firefox-${PKGVERSION_NOREV}
@@ -34,26 +34,28 @@ CONFIGURE_ARGS+= --enable-strip @@ -34,26 +34,28 @@ CONFIGURE_ARGS+= --enable-strip
34CONFIGURE_ARGS+= --with-intl-api 34CONFIGURE_ARGS+= --with-intl-api
35# --disable-optimize 35# --disable-optimize
36# For rustc/cargo detection 36# For rustc/cargo detection
37CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM} 37CONFIGURE_ARGS+= --target=${MACHINE_GNU_PLATFORM}
38CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} 38CONFIGURE_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
44CXXFLAGS+= -march=i586 44CXXFLAGS+= -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
52SUBST_CLASSES+= conf 54SUBST_CLASSES+= conf
53SUBST_STAGE.conf= pre-configure 55SUBST_STAGE.conf= pre-configure
54SUBST_MESSAGE.conf= Set variables in configuration file. 56SUBST_MESSAGE.conf= Set variables in configuration file.
55SUBST_FILES.conf+= js/moz.configure 57SUBST_FILES.conf+= js/moz.configure
56SUBST_VARS.conf= PREFIX 58SUBST_VARS.conf= PREFIX
57 59
58PKGCONFIG_OVERRIDE+= js/src/build/js.pc.in 60PKGCONFIG_OVERRIDE+= js/src/build/js.pc.in
59PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in 61PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in