blob: b3646b6ddf33f8c37dae193458cf4a410d59ba44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.3 2016/07/09 06:38:27 wiz Exp $
DISTNAME= mozjs17.0.0
PKGNAME= ${DISTNAME:S/mozjs/spidermonkey17-/}
PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_MOZILLA:=js/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://developer.mozilla.org/en/SpiderMonkey
COMMENT= Standalone JavaScript implementation in C
LICENSE= mpl-2.0
MAKE_JOBS_SAFE= no
GNU_CONFIGURE= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config perl gmake
CONFIGURE_ARGS+= --with-system-nspr
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --with-pthreads
CONFIGURE_ARGS+= --enable-threadsafe
CONFIGURE_ARGS+= --enable-system-ffi
CONFIGURE_DIRS= js/src
PKGCONFIG_OVERRIDE+= js/src/ctypes/libffi/libffi.pc.in
PKGCONFIG_OVERRIDE+= js/src/js.pc.in
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
post-install:
.if ${OPSYS} == "Darwin"
install_name_tool -id ${PREFIX}/lib/libmozjs-17.0.dylib \
${DESTDIR}${PREFIX}/lib/libmozjs-17.0.dylib
.endif
${CHMOD} -x ${DESTDIR}${PREFIX}/include/js-17.0/*.*
${CHMOD} -x ${DESTDIR}${PREFIX}/include/js-17.0/*/*.*
${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libmozjs-17.0.a
${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-17.0.pc
PYTHON_VERSIONS_ACCEPTED= 27
PYTHON_FOR_BUILD_ONLY= yes
.include "../../lang/python/tool.mk"
.include "../../devel/libffi/buildlink3.mk"
.include "../../devel/nspr/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|