1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00
freebsd-ports/lang/spidermonkey24/Makefile
Gerald Pfeifer ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00

85 lines
2.6 KiB
Makefile

# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$
PORTNAME= spidermonkey24
PORTVERSION= 24.2.0
PORTREVISION= 12
CATEGORIES= lang
MASTER_SITES= MOZILLA/js
#http://people.mozilla.org/~sstangl/
DISTNAME= mozjs-${PORTVERSION}
MAINTAINER= kwm@FreeBSD.org
COMMENT= Standalone JavaScript based from Mozilla 24-esr
BUILD_DEPENDS= zip:archivers/zip
LIB_DEPENDS= libnspr4.so:devel/nspr
CONFLICTS= njs-[0-9]*
GNU_CONFIGURE= yes
USES= compiler:c++11-lib gmake pathfix perl5 python:2.7,build \
readline tar:bzip2
USE_PERL5= build
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/mozjs-${PORTVERSION}/js/src
CONFIGURE_ARGS= --with-pthreads \
--with-system-nspr
OPTIONS_DEFINE= DEBUG GCZEAL JEMALLOC METHODJIT OPTIMIZE READLINE \
THREADSAFE TRACEJIT UTF8 DTRACE
OPTIONS_DEFAULT= METHODJIT OPTIMIZE READLINE THREADSAFE TRACEJIT
# ld(1) fails to link probes: Relocations in generic ELF (EM: 0)
OPTIONS_EXCLUDE_aarch64= DTRACE
# dt_modtext:opensolaris/lib/libdtrace/common/dt_link.c: arm not implemented
OPTIONS_EXCLUDE_armv6= DTRACE
OPTIONS_EXCLUDE_armv7= DTRACE
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debug debug-symbols
DTRACE_CONFIGURE_ENABLE=dtrace profiling
DTRACE_LIBS= -lelf
GCZEAL_DESC= Enable Zealous garbage collecting
GCZEAL_CONFIGURE_ENABLE=gczeal
JEMALLOC_DESC= Use jemalloc as memory allocator
JEMALLOC_CONFIGURE_ENABLE= jemalloc
METHODJIT_DESC= Enable method JIT support
METHODJIT_CONFIGURE_ENABLE= methodjit
OPTIMIZE_DESC= Enable compiler optimizations
OPTIMIZE_CONFIGURE_ENABLE= optimize
READLINE_DESC= Link js shell to system readline library
READLINE_CONFIGURE_ENABLE= readline
THREADSAFE_DESC= Enable multiple thread support
THREADSAFE_CONFIGURE_ENABLE= threadsafe
TRACEJIT_DESC= Enable tracing JIT support
TRACEJIT_CONFIGURE_ENABLE= tracejit
UTF8_DESC= Treat strings as UTF8 instead of ISO-8859-1
UTF8_CFLAGS= -DJS_C_STRINGS_ARE_UTF8
.include <bsd.port.pre.mk>
.if ${ARCH} == amd64
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.endif
do-test:
@${ECHO_MSG} -n "===> Running jstests.py: "
@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} tests/jstests.py \
--no-progress ./js24
.if ${PORT_OPTIONS:MMETHODJIT} || ${PORT_OPTIONS:MTRACEJIT}
@${ECHO_MSG} -n "===> Running jit_test.py: "
@cd ${WRKSRC} && ${SETENV} TZ=PST8PDT ${PYTHON_CMD} jit-test/jit_test.py \
--no-progress --jitflags=,m,j,mj,mjp,am,amj,amjp,amd ./js24
.endif
post-install:
${LN} -s libmozjs-24.so ${STAGEDIR}${PREFIX}/lib/libmozjs-24.so.1
.if ! ${PORT_OPTIONS:MDTRACE}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/js24
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libmozjs-24.*
.endif
.include <bsd.port.post.mk>