openbsd-ports/devel/spidermonkey/Makefile
2013-04-14 08:15:59 +00:00

66 lines
1.6 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2013/04/14 08:15:59 ajacoutot Exp $
SHARED_ONLY= Yes
# 1.8.5 is based on ffx 10 engine, broken at runtime on sparc64
# jsapi-tests crashes in js::MarkRangeConservatively() on hppa
# some tests crash on mips64
# but let's keep them to build more packages
# XXX: sync with devel/gconf2, net/libproxy and x11/gtk+3
ONLY_FOR_ARCHS = alpha amd64 i386 hppa mips64el mips64 powerpc sparc64
COMMENT = Mozilla C implementation of JavaScript
MOZILLA_VERSION = 1.8.5
DISTNAME = js185-1.0.0
PKGNAME = spidermonkey-${MOZILLA_VERSION}
PKGSPEC = spidermonkey->=1.8,<1.9
REVISION = 6
SO_VERSION = 0.0
SHARED_LIBS = mozjs185 ${SO_VERSION}
CATEGORIES = devel
HOMEPAGE = http://www.mozilla.org/js/spidermonkey/
MASTER_SITES = http://ftp.mozilla.org/pub/mozilla.org/js/
# MPL
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m pthread readline nspr4 ncurses plc4 plds4 stdc++
VMEM_WARNING = Yes
.if ${MACHINE_ARCH} == "i386"
PKG_ARGS+= -Djit=1 -Damd64=0
.elif ${MACHINE_ARCH} == "amd64"
PKG_ARGS+= -Djit=1 -Damd64=1
.else
PKG_ARGS+= -Djit=0 -Damd64=0
.endif
MODULES = lang/python
MODPY_RUNDEP = No
TEST_DEPENDS = ${MODPY_RUN_DEPENDS}
BUILD_DEPENDS = archivers/zip
LIB_DEPENDS = devel/nspr
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC} ${WRKSRC}/ctypes/libffi
SUBST_VARS += MOZILLA_VERSION
WRKDIST = ${WRKDIR}/js-${MOZILLA_VERSION}/js/src
USE_GMAKE = yes
CONFIGURE_STYLE = autoconf no-autoheader
CONFIGURE_ARGS = --with-pthreads \
--with-system-nspr \
--enable-readline \
--enable-ctypes \
--enable-threadsafe
CONFIGURE_ENV += SO_VERSION="${SO_VERSION}" \
MOZILLA_VERSION="${MOZILLA_VERSION}" \
LIBS=-lncurses
.include <bsd.port.mk>