blob: 52684de62405758019dcd8f10f37b978dafda7f3 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $NetBSD: Makefile,v 1.12 2020/11/05 09:06:57 ryoon Exp $
DISTNAME= mozjs60_60.8.0.orig
PKGNAME= ${DISTNAME:S/_/-/:S/.orig//}
PKGREVISION= 8
CATEGORIES= lang
MASTER_SITES= http://deb.debian.org/debian/pool/main/m/mozjs60/
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://packages.debian.org/unstable/libmozjs-60-0
COMMENT= SpiderMonkey JavaScript library (60.x branch)
#LICENSE= # TODO: (see mk/license.mk)
WRKSRC= ${WRKDIR}/mozjs-60.8.0/js/src
USE_TOOLS+= autoconf213 gmake perl pkg-config
USE_LANGUAGES= c c++
# "ERROR: Only GCC 4.9 or newer is supported"
GCC_REQD+= 4.9
HAS_CONFIGURE= yes
CONFIGURE_DIRS= build
CONFIGURE_SCRIPT= ../configure
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --with-system-icu
CONFIGURE_ARGS+= --with-system-zlib
CONFIGURE_ARGS+= --enable-readline
CONFIGURE_ARGS+= --enable-posix-nspr-emulation
CONFIGURE_ARGS+= --with-pthreads
CONFIGURE_ARGS+= --disable-jemalloc
CONFIGURE_ARGS+= --disable-debug-symbols
CONFIGURE_ARGS+= --enable-strip
.if ${MACHINE_ARCH} == "i386"
# 64 bit atomics.
CXXFLAGS+= -march=i586
.endif
# --with-intl-api
# --disable-optimize
PKGCONFIG_OVERRIDE+= build/js.pc.in
PKGCONFIG_OVERRIDE+= ctypes/libffi/libffi.pc.in
PYTHON_VERSIONS_ACCEPTED= 27
pre-configure:
cd ${WRKSRC} && autoconf-2.13
mkdir ${WRKSRC}/build
post-install:
cd ${DESTDIR}${PREFIX}/lib && \
${MV} libmozjs-60.so libmozjs-60.so.0.0.0 && \
${LN} -s libmozjs-60.so.0.0.0 libmozjs-60.so.0 && \
${LN} -s libmozjs-60.so.0 libmozjs-60.so
${RM} -f ${DESTDIR}${PREFIX}/lib/libjs_static.ajs
${CHMOD} -x ${DESTDIR}${PREFIX}/include/mozjs-60/js-config.h
${CHMOD} -x ${DESTDIR}${PREFIX}/lib/pkgconfig/mozjs-60.pc
.include "../../mk/bsd.prefs.mk"
.if !empty(MACHINE_PLATFORM:MNetBSD-*-powerpc)
# 64 bit atomics
.include "../../devel/libatomic/buildlink3.mk"
.endif
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/python/tool.mk"
.include "../../textproc/icu/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|