1 # Created by: Dan Rench <citric@cubicone.tmetic.com>
4 PORTNAME= spidermonkey17
8 MASTER_SITES= ${MASTER_SITE_MOZILLA_EXTENDED}
10 DISTNAME= js-${DISTVERSION}
12 MAINTAINER= citric@cubicone.tmetic.com
13 COMMENT= Standalone JavaScript interpreter from the Mozilla project
15 LIB_DEPENDS= libnspr4.so:${PORTSDIR}/devel/nspr
19 MAKE_ARGS+= JS_THREADSAFE=YES \
20 PROG_LIBS="-lreadline -ltermcap -lm -lpthread" \
21 LDFLAGS="-L${LOCALBASE}/lib"
22 CFLAGS+= -I${LOCALBASE}/include/nspr
25 MAKEFILE= Makefile.ref
26 ALL_TARGET= ${OPSYS}`${UNAME} -r`_DBG.OBJ/js
27 MAKE_ENV+= CCC="${CXX}"
31 JSH= jsapi.h jsarena.h jsarray.h jsatom.h jsautocfg.h jsbool.h \
32 jsclist.h jscntxt.h jscompat.h jsconfig.h jsdate.h jsdhash.h \
33 jsdtoa.h jsemit.h jsexn.h jsfun.h jsgc.h jshash.h jsinterp.h \
34 jsiter.h jslibmath.h jslock.h jslong.h jsmath.h jsnum.h jsobj.h \
35 jsopcode.h jsosdep.h jsotypes.h jsparse.h jsprf.h jsprvtd.h \
36 jspubtd.h jsutil.h jsregexp.h jsscan.h jsscope.h jsscript.h \
37 jsstr.h jstypes.h jsxdrapi.h jsxml.h \
40 PLIST_FILES= bin/js lib/libjs.so lib/libjs.so.1 ${JSH:S,^,include/,}
41 WRKSRC= ${WRKDIR}/${SRC_DIR}
42 EXTRACT_AFTER_ARGS= --exclude js/jsd
46 .include <bsd.port.options.mk>
48 .if ${PORT_OPTIONS:MUTF8}
49 CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
53 ${CP} ${WRKSRC}/config/Linux_All.mk \
54 ${WRKSRC}/config/${OPSYS}`${UNAME} -r`.mk
57 ${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/js \
58 ${STAGEDIR}${PREFIX}/bin
59 ${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/libjs.so \
60 ${STAGEDIR}${PREFIX}/lib
61 ${LN} -sf libjs.so ${STAGEDIR}${PREFIX}/lib/libjs.so.1
62 ${CP} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/jsautocfg.h ${WRKSRC}
63 @${INSTALL_DATA} ${JSH:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/include/
65 .include <bsd.port.pre.mk>
67 .if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
68 BROKEN= Does not build on sparc64-9: fails to link
71 .include <bsd.port.post.mk>