2013-06-04 17:13:42 +02:00
# Created by: Dan Rench <citric@cubicone.tmetic.com>
2003-04-27 03:46:49 +02:00
2012-09-02 21:59:20 +02:00
PORTNAME = spidermonkey17
2008-07-08 20:03:31 +02:00
DISTVERSION = 1.7.0
2019-04-09 16:04:49 +02:00
PORTREVISION = 5
2003-04-27 03:46:49 +02:00
CATEGORIES = lang
2015-06-09 16:24:41 +02:00
MASTER_SITES = MOZILLA/js
2005-07-21 17:28:12 +02:00
DISTNAME = js-${ DISTVERSION }
2003-04-27 03:46:49 +02:00
2003-09-24 11:23:29 +02:00
MAINTAINER = citric@cubicone.tmetic.com
2014-07-05 21:27:03 +02:00
COMMENT = Standalone JavaScript interpreter from the Mozilla project
2003-04-27 03:46:49 +02:00
2021-01-02 00:51:48 +01:00
BROKEN_aarch64 = fails to link: missing sbrk
BROKEN_armv6 = fails to link: final link failed: Nonrepresentable section on output
BROKEN_armv7 = fails to link: /nxb-bin/usr/bin/ld: FreeBSD12.0-CURRENT_DBG.OBJ/js: hidden symbol ` __aeabi_uidivmod' in /usr/lib/libgcc.a( aeabi_uidivmod.o) is referenced by DSO
BROKEN_mips64 = fails to link: final link failed: Nonrepresentable section on output
BROKEN_riscv64 = fails to link: missing sbrk
BROKEN_sparc64 = fails to link
2016-04-01 16:08:37 +02:00
LIB_DEPENDS = libnspr4.so:devel/nspr
2007-04-26 09:57:58 +02:00
2006-10-30 17:46:18 +01:00
MAKE_ARGS += JS_THREADSAFE = YES \
2016-02-05 18:47:59 +01:00
PROG_LIBS = "-lreadline -lncurses -lm -lpthread" \
2006-10-30 17:46:18 +01:00
LDFLAGS = " -L ${ LOCALBASE } /lib "
CFLAGS += -I${ LOCALBASE } /include/nspr
2005-08-11 06:00:00 +02:00
2016-02-05 18:47:59 +01:00
USES = gmake ncurses readline
2005-08-11 06:00:00 +02:00
MAKEFILE = Makefile.ref
ALL_TARGET = ${ OPSYS } ` ${ UNAME } -r` _DBG.OBJ/js
2008-07-25 14:24:09 +02:00
MAKE_ENV += CCC = " ${ CXX } "
2006-08-05 20:37:14 +02:00
USE_LDCONFIG = yes
2005-08-11 06:00:00 +02:00
SRC_DIR = js/src
2009-06-23 21:47:12 +02:00
JSH = jsapi.h jsarena.h jsarray.h jsatom.h jsautocfg.h jsbool.h \
jsclist.h jscntxt.h jscompat.h jsconfig.h jsdate.h jsdhash.h \
jsdtoa.h jsemit.h jsexn.h jsfun.h jsgc.h jshash.h jsinterp.h \
jsiter.h jslibmath.h jslock.h jslong.h jsmath.h jsnum.h jsobj.h \
2011-09-14 23:55:17 +02:00
jsopcode.h jsosdep.h jsotypes.h jsparse.h jsprf.h jsprvtd.h \
jspubtd.h jsutil.h jsregexp.h jsscan.h jsscope.h jsscript.h \
jsstr.h jstypes.h jsxdrapi.h jsxml.h \
js.msg jsproto.tbl
2009-06-23 21:47:12 +02:00
2017-07-30 16:34:27 +02:00
PLIST_FILES = bin/js lib/libjs.so lib/libjs.so.1 ${ JSH : S ,^,include/js-1.7/, }
2008-07-08 20:03:31 +02:00
WRKSRC = ${ WRKDIR } /${ SRC_DIR }
2013-10-25 14:50:46 +02:00
EXTRACT_AFTER_ARGS = --exclude js/jsd
2004-03-07 14:00:02 +01:00
2013-06-04 17:13:42 +02:00
OPTIONS_DEFINE = UTF8
2009-11-09 09:29:21 +01:00
. i n c l u d e < b s d . p o r t . o p t i o n s . m k >
2013-06-04 17:13:42 +02:00
.if ${PORT_OPTIONS : MUTF 8}
2009-11-09 09:29:21 +01:00
CFLAGS += -DJS_C_STRINGS_ARE_UTF8
. e n d i f
2005-08-11 06:00:00 +02:00
do-configure :
2003-04-27 03:46:49 +02:00
${ CP } ${ WRKSRC } /config/Linux_All.mk \
2013-10-25 14:50:46 +02:00
${ WRKSRC } /config/${ OPSYS } ` ${ UNAME } -r` .mk
2003-04-27 03:46:49 +02:00
do-install :
2005-08-11 06:00:00 +02:00
${ INSTALL_PROGRAM } ${ WRKSRC } /${ OPSYS } ` ${ UNAME } -r` _DBG.OBJ/js \
2014-06-17 15:29:44 +02:00
${ STAGEDIR } ${ PREFIX } /bin
2005-08-11 06:00:00 +02:00
${ INSTALL_PROGRAM } ${ WRKSRC } /${ OPSYS } ` ${ UNAME } -r` _DBG.OBJ/libjs.so \
2014-06-17 15:29:44 +02:00
${ STAGEDIR } ${ PREFIX } /lib
${ LN } -sf libjs.so ${ STAGEDIR } ${ PREFIX } /lib/libjs.so.1
2005-08-11 06:00:00 +02:00
${ CP } ${ WRKSRC } /${ OPSYS } ` ${ UNAME } -r` _DBG.OBJ/jsautocfg.h ${ WRKSRC }
2017-07-30 16:34:27 +02:00
@${ MKDIR } ${ STAGEDIR } ${ PREFIX } /include/js-1.7
@${ INSTALL_DATA } ${ JSH : S ,^, ${ WRKSRC } /, } \
${ STAGEDIR } ${ PREFIX } /include/js-1.7/
2003-04-27 03:46:49 +02:00
2015-10-15 16:55:14 +02:00
. i n c l u d e < b s d . p o r t . m k >