2015-09-08 20:53:46 +02:00
|
|
|
# $NetBSD: Makefile,v 1.29 2015/09/08 18:53:46 joerg Exp $
|
2006-01-27 20:47:21 +01:00
|
|
|
|
2010-12-23 13:36:01 +01:00
|
|
|
DISTNAME= js-1.8.0-rc1
|
|
|
|
PKGNAME= spidermonkey-1.8.0rc1
|
2015-09-08 20:53:46 +02:00
|
|
|
PKGREVISION= 5
|
2006-01-27 20:47:21 +01:00
|
|
|
CATEGORIES= lang
|
2012-04-30 11:54:03 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=js/}
|
2006-01-27 20:47:21 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2006-01-27 20:47:21 +01:00
|
|
|
HOMEPAGE= http://www.mozilla.org/js/spidermonkey/
|
|
|
|
COMMENT= Standalone JavaScript implementation in C
|
|
|
|
|
2012-10-21 23:07:11 +02:00
|
|
|
CONFLICTS= js-[0-9]*
|
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
WRKSRC= ${WRKDIR}/js/src
|
|
|
|
|
2008-01-11 10:36:23 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
NO_CONFIGURE= yes
|
2010-01-16 16:04:32 +01:00
|
|
|
USE_TOOLS+= gmake pkg-config
|
2006-09-09 04:41:53 +02:00
|
|
|
MAKE_FILE= Makefile.ref
|
2007-01-24 20:35:26 +01:00
|
|
|
CFLAGS+= -DJS_USE_FDLIBM_MATH=0
|
2006-01-27 20:47:21 +01:00
|
|
|
|
2012-10-21 23:07:11 +02:00
|
|
|
MAKE_FLAGS+= BUILD_OPT=1 LDFLAGS=${LDFLAGS:Q} PREFIX=${PREFIX}
|
2006-12-03 11:11:49 +01:00
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
INSTALLATION_DIRS= bin include lib
|
|
|
|
|
2006-08-04 15:22:11 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
|
2015-04-02 16:40:32 +02:00
|
|
|
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD" || \
|
|
|
|
${OPSYS} == "MirBSD"
|
2006-08-04 15:22:11 +02:00
|
|
|
BUILDDIRPREFIX= pkgsrc
|
2007-01-24 20:58:19 +01:00
|
|
|
.elif ${OPSYS} == "Linux"
|
|
|
|
BUILDDIRPREFIX= Linux_All
|
2010-12-23 13:36:01 +01:00
|
|
|
.elif ${OPSYS} == "SunOS"
|
|
|
|
SUN_PLATFORM!= ${UNAME} -i
|
|
|
|
BUILDDIRPREFIX= ${OPSYS}${OS_VERSION}_${SUN_PLATFORM}
|
2006-08-04 15:22:11 +02:00
|
|
|
.else
|
|
|
|
BUILDDIRPREFIX= ${OPSYS}
|
|
|
|
.endif
|
|
|
|
|
2006-08-08 11:50:33 +02:00
|
|
|
.if ${OPSYS} == "Darwin"
|
|
|
|
SO_SUFFIX=dylib
|
|
|
|
.else
|
|
|
|
SO_SUFFIX=so
|
|
|
|
.endif
|
|
|
|
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX}
|
|
|
|
|
2010-12-23 13:36:01 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/pkgsrc.mk ${WRKSRC}/config
|
2011-12-06 06:22:38 +01:00
|
|
|
.if ${OPSYS} == "SunOS"
|
2010-12-23 13:36:01 +01:00
|
|
|
${CP} ${FILESDIR}/opensolaris.mk ${WRKSRC}/config/${BUILDDIRPREFIX}.mk
|
2011-12-06 06:22:38 +01:00
|
|
|
.endif
|
2010-12-23 13:36:01 +01:00
|
|
|
${RM} ${WRKSRC}/lock_SunOS.s
|
2006-01-27 20:47:21 +01:00
|
|
|
|
|
|
|
do-install:
|
2006-12-03 11:11:49 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/js \
|
2007-08-12 05:04:32 +02:00
|
|
|
${DESTDIR}${PREFIX}/bin
|
2006-12-03 11:11:49 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/libjs.${SO_SUFFIX} \
|
2007-08-12 05:04:32 +02:00
|
|
|
${DESTDIR}${PREFIX}/lib
|
2012-10-21 23:07:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/jsautocfg.h ${WRKSRC}
|
2010-12-23 13:36:01 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.h ${DESTDIR}${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.tbl ${DESTDIR}${PREFIX}/include
|
2006-01-27 20:47:21 +01:00
|
|
|
|
2013-07-15 04:02:17 +02:00
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
2006-01-27 20:47:21 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|