Sun Nov 10 14:17:38 2019 UTC ()
spidermonkey52: Requires gcc 4.8 or higher


(nia)
diff -r1.18 -r1.19 pkgsrc/lang/spidermonkey52/Makefile

cvs diff -r1.18 -r1.19 pkgsrc/lang/spidermonkey52/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/lang/spidermonkey52/Attic/Makefile 2019/08/11 13:21:24 1.18
+++ pkgsrc/lang/spidermonkey52/Attic/Makefile 2019/11/10 14:17:38 1.19
@@ -1,59 +1,61 @@ @@ -1,59 +1,61 @@
1# $NetBSD: Makefile,v 1.18 2019/08/11 13:21:24 wiz Exp $ 1# $NetBSD: Makefile,v 1.19 2019/11/10 14:17:38 nia Exp $
2 2
3DISTNAME= mozjs-52.7.4 3DISTNAME= mozjs-52.7.4
4PKGREVISION= 11 4PKGREVISION= 11
5PKGNAME= ${DISTNAME:S/mozjs/spidermonkey52/} 5PKGNAME= ${DISTNAME:S/mozjs/spidermonkey52/}
6CATEGORIES= lang 6CATEGORIES= lang
7MASTER_SITES= https://queue.taskcluster.net/v1/task/YqG2fjJJSTGzGX090FjDYg/runs/0/artifacts/public/build/ 7MASTER_SITES= https://queue.taskcluster.net/v1/task/YqG2fjJJSTGzGX090FjDYg/runs/0/artifacts/public/build/
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/52 11HOMEPAGE= https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/52
12COMMENT= Standalone JavaScript implementation in C (major version 52) 12COMMENT= Standalone JavaScript implementation in C (major version 52)
13LICENSE= mpl-2.0 13LICENSE= mpl-2.0
14 14
15HAS_CONFIGURE= yes 15HAS_CONFIGURE= yes
16USE_LANGUAGES= c c++ 16USE_LANGUAGES= c c++
17USE_TOOLS+= pkg-config perl gmake autoconf213 17USE_TOOLS+= pkg-config perl gmake autoconf213
18AUTOCONF_REQD= 2.13 18AUTOCONF_REQD= 2.13
19 19
 20# ERROR: Only GCC 4.8 or newer is supported
 21GCC_REQD+= 4.8
 22
20CONFIGURE_ARGS+= --prefix=${PREFIX} 23CONFIGURE_ARGS+= --prefix=${PREFIX}
21CONFIGURE_ARGS+= --enable-readline 24CONFIGURE_ARGS+= --enable-readline
22CONFIGURE_ARGS+= --with-system-icu 25CONFIGURE_ARGS+= --with-system-icu
23CONFIGURE_ARGS+= --with-system-nspr 26CONFIGURE_ARGS+= --with-system-nspr
24CONFIGURE_ARGS+= --with-system-zlib 27CONFIGURE_ARGS+= --with-system-zlib
25CONFIGURE_ARGS+= --with-pthreads 28CONFIGURE_ARGS+= --with-pthreads
26CONFIGURE_ARGS+= --disable-jemalloc 29CONFIGURE_ARGS+= --disable-jemalloc
27CONFIGURE_ARGS+= --disable-debug-symbols 30CONFIGURE_ARGS+= --disable-debug-symbols
28CONFIGURE_ARGS+= --enable-strip 31CONFIGURE_ARGS+= --enable-strip
29 32
30CONFIGURE_DIRS= js/src 33CONFIGURE_DIRS= js/src
31 34
32PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in 35PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in
33PKGCONFIG_OVERRIDE+= js/src/js.pc.in 36PKGCONFIG_OVERRIDE+= js/src/js.pc.in
34 37
35PYTHON_VERSIONS_ACCEPTED= 27 38PYTHON_VERSIONS_ACCEPTED= 27
36PYTHON_FOR_BUILD_ONLY= yes 39PYTHON_FOR_BUILD_ONLY= yes
37 40
38DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat 41DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
39 42
40.if ${MACHINE_ARCH} == "i386" 43.if ${MACHINE_ARCH} == "i386"
41# Needs 8 byte atomics. 44# Needs 8 byte atomics.
42CXXFLAGS+= -march=i586 45CXXFLAGS+= -march=i586
43.elif ${MACHINE_ARCH} == "powerpc" 46.elif ${MACHINE_ARCH} == "powerpc"
44# PowerPC doesn't have the necessary hardware-backed atomics, it needs 47# PowerPC doesn't have the necessary hardware-backed atomics, it needs
45# GCC's libatomic. Tested with GCC 4.8.5 and 7.3 on NetBSD 8.0/powerpc. 48# GCC's libatomic. Tested with GCC 4.8.5 and 7.3 on NetBSD 8.0/powerpc.
46GCC_REQD+= 4.8 
47USE_PKGSRC_GCC= yes 49USE_PKGSRC_GCC= yes
48USE_PKGSRC_GCC_RUNTIME= yes 50USE_PKGSRC_GCC_RUNTIME= yes
49.endif 51.endif
50 52
51# fails, does not find hg/git checkout 53# fails, does not find hg/git checkout
52TEST_TARGET= check 54TEST_TARGET= check
53 55
54pre-configure: 56pre-configure:
55 cd ${WRKSRC}/js/src && autoconf 57 cd ${WRKSRC}/js/src && autoconf
56 58
57post-install: 59post-install:
58 ${RM} ${DESTDIR}${PREFIX}/lib/libjs_static.ajs 60 ${RM} ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
59 61