pkgsrc/lang/spidermonkey/Makefile
2015-09-08 18:53:46 +00:00

69 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.29 2015/09/08 18:53:46 joerg Exp $
DISTNAME= js-1.8.0-rc1
PKGNAME= spidermonkey-1.8.0rc1
PKGREVISION= 5
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=js/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.mozilla.org/js/spidermonkey/
COMMENT= Standalone JavaScript implementation in C
CONFLICTS= js-[0-9]*
WRKSRC= ${WRKDIR}/js/src
MAKE_JOBS_SAFE= no
NO_CONFIGURE= yes
USE_TOOLS+= gmake pkg-config
MAKE_FILE= Makefile.ref
CFLAGS+= -DJS_USE_FDLIBM_MATH=0
MAKE_FLAGS+= BUILD_OPT=1 LDFLAGS=${LDFLAGS:Q} PREFIX=${PREFIX}
INSTALLATION_DIRS= bin include lib
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" || \
${OPSYS} == "MirBSD"
BUILDDIRPREFIX= pkgsrc
.elif ${OPSYS} == "Linux"
BUILDDIRPREFIX= Linux_All
.elif ${OPSYS} == "SunOS"
SUN_PLATFORM!= ${UNAME} -i
BUILDDIRPREFIX= ${OPSYS}${OS_VERSION}_${SUN_PLATFORM}
.else
BUILDDIRPREFIX= ${OPSYS}
.endif
.if ${OPSYS} == "Darwin"
SO_SUFFIX=dylib
.else
SO_SUFFIX=so
.endif
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX}
.include "options.mk"
post-extract:
${CP} ${FILESDIR}/pkgsrc.mk ${WRKSRC}/config
.if ${OPSYS} == "SunOS"
${CP} ${FILESDIR}/opensolaris.mk ${WRKSRC}/config/${BUILDDIRPREFIX}.mk
.endif
${RM} ${WRKSRC}/lock_SunOS.s
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/js \
${DESTDIR}${PREFIX}/bin
${INSTALL_LIB} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/libjs.${SO_SUFFIX} \
${DESTDIR}${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/jsautocfg.h ${WRKSRC}
${INSTALL_DATA} ${WRKSRC}/*.h ${DESTDIR}${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/*.tbl ${DESTDIR}${PREFIX}/include
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"