freebsd-ports/lang/spidermonkey17/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

70 lines
2 KiB
Makefile

# Created by: Dan Rench <citric@cubicone.tmetic.com>
# $FreeBSD$
PORTNAME= spidermonkey17
DISTVERSION= 1.7.0
PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= MOZILLA_EXTENDED/js
DISTNAME= js-${DISTVERSION}
MAINTAINER= citric@cubicone.tmetic.com
COMMENT= Standalone JavaScript interpreter from the Mozilla project
LIB_DEPENDS= libnspr4.so:${PORTSDIR}/devel/nspr
CONFLICTS= njs-[0-9]*
MAKE_ARGS+= JS_THREADSAFE=YES \
PROG_LIBS="-lreadline -ltermcap -lm -lpthread" \
LDFLAGS="-L${LOCALBASE}/lib"
CFLAGS+= -I${LOCALBASE}/include/nspr
USES= gmake readline
MAKEFILE= Makefile.ref
ALL_TARGET= ${OPSYS}`${UNAME} -r`_DBG.OBJ/js
MAKE_ENV+= CCC="${CXX}"
USE_LDCONFIG= yes
SRC_DIR= js/src
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 \
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
PLIST_FILES= bin/js lib/libjs.so lib/libjs.so.1 ${JSH:S,^,include/,}
WRKSRC= ${WRKDIR}/${SRC_DIR}
EXTRACT_AFTER_ARGS= --exclude js/jsd
OPTIONS_DEFINE= UTF8
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MUTF8}
CFLAGS+= -DJS_C_STRINGS_ARE_UTF8
.endif
do-configure:
${CP} ${WRKSRC}/config/Linux_All.mk \
${WRKSRC}/config/${OPSYS}`${UNAME} -r`.mk
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/js \
${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/libjs.so \
${STAGEDIR}${PREFIX}/lib
${LN} -sf libjs.so ${STAGEDIR}${PREFIX}/lib/libjs.so.1
${CP} ${WRKSRC}/${OPSYS}`${UNAME} -r`_DBG.OBJ/jsautocfg.h ${WRKSRC}
@${INSTALL_DATA} ${JSH:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/include/
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
BROKEN= Does not build on sparc64-9: fails to link
.endif
.include <bsd.port.post.mk>