Update lang/p5-signatures to version 0.11
[dports.git] / lang / spidermonkey17 / Makefile
1 # Created by: Dan Rench <citric@cubicone.tmetic.com>
2 # $FreeBSD$
3
4 PORTNAME=       spidermonkey17
5 DISTVERSION=    1.7.0
6 PORTREVISION=   1
7 CATEGORIES=     lang
8 MASTER_SITES=   ${MASTER_SITE_MOZILLA_EXTENDED}
9 MASTER_SITE_SUBDIR=     js
10 DISTNAME=       js-${DISTVERSION}
11
12 MAINTAINER=     citric@cubicone.tmetic.com
13 COMMENT=        Standalone JavaScript interpreter from the Mozilla project
14
15 LIB_DEPENDS=    libnspr4.so:${PORTSDIR}/devel/nspr
16
17 CONFLICTS=      njs-[0-9]*
18
19 MAKE_ARGS+=     JS_THREADSAFE=YES \
20                 PROG_LIBS="-lreadline -ltermcap -lm -lpthread" \
21                 LDFLAGS="-L${LOCALBASE}/lib"
22 CFLAGS+=        -I${LOCALBASE}/include/nspr
23
24 USES=           gmake readline
25 MAKEFILE=       Makefile.ref
26 ALL_TARGET=     ${OPSYS}`${UNAME} -r`_DBG.OBJ/js
27 MAKE_ENV+=      CCC="${CXX}"
28 USE_LDCONFIG=   yes
29 SRC_DIR=        js/src
30
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 \
38                 js.msg jsproto.tbl
39
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
43
44 OPTIONS_DEFINE= UTF8
45
46 .include <bsd.port.options.mk>
47
48 .if ${PORT_OPTIONS:MUTF8}
49 CFLAGS+=        -DJS_C_STRINGS_ARE_UTF8
50 .endif
51
52 do-configure:
53         ${CP} ${WRKSRC}/config/Linux_All.mk \
54                 ${WRKSRC}/config/${OPSYS}`${UNAME} -r`.mk
55
56 do-install:
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/
64
65 .include <bsd.port.pre.mk>
66
67 .if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
68 BROKEN=         Does not build on sparc64-9: fails to link
69 .endif
70
71 .include <bsd.port.post.mk>