2007-01-24 20:35:26 +01:00
|
|
|
# $NetBSD: Makefile,v 1.13 2007/01/24 19:35:26 rillig Exp $
|
2006-01-27 20:47:21 +01:00
|
|
|
|
|
|
|
DISTNAME= js-1.5
|
|
|
|
PKGNAME= ${DISTNAME:S/js/spidermonkey/}
|
2007-01-24 20:35:26 +01:00
|
|
|
PKGREVISION= 9
|
2006-01-27 20:47:21 +01:00
|
|
|
CATEGORIES= lang
|
2006-12-03 11:11:49 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA:=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
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/js/src
|
|
|
|
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
USE_TOOLS+= gmake
|
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
|
|
|
|
2006-12-03 11:11:49 +01:00
|
|
|
# JS_THREADSAFE
|
|
|
|
PTHREAD_AUTO_VARS= yes
|
|
|
|
MAKE_FLAGS+= BUILD_OPT=1 LDFLAGS=${LDFLAGS:Q} PREFIX=${PREFIX:Q}
|
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
INSTALLATION_DIRS= bin include lib
|
|
|
|
|
|
|
|
DIST_HEADERS= jsapi.h jsautocfg.h jscompat.h jslong.h \
|
|
|
|
jsosdep.h jsotypes.h jspubtd.h jstypes.h
|
|
|
|
|
2006-08-04 15:22:11 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "FreeBSD" || \
|
|
|
|
${OPSYS} == "DragonFly" || ${OPSYS} == "OpenBSD"
|
|
|
|
BUILDDIRPREFIX= pkgsrc
|
|
|
|
.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}
|
|
|
|
|
2006-01-27 20:47:21 +01:00
|
|
|
post-extract:
|
|
|
|
${CP} ${FILESDIR}/pkgsrc.mk ${WRKSRC}/config
|
|
|
|
|
|
|
|
do-install:
|
2006-12-03 11:11:49 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/js \
|
2006-08-04 15:22:11 +02:00
|
|
|
${PREFIX}/bin
|
2006-12-03 11:11:49 +01:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/libjs.${SO_SUFFIX} \
|
2006-08-04 15:22:11 +02:00
|
|
|
${PREFIX}/lib
|
2006-12-03 11:11:49 +01:00
|
|
|
${CP} ${WRKSRC}/${BUILDDIRPREFIX}_OPT.OBJ/jsautocfg.h ${WRKSRC}
|
2006-01-27 20:47:21 +01:00
|
|
|
.for f in ${DIST_HEADERS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/include
|
|
|
|
.endfor
|
|
|
|
|
2006-12-03 11:11:49 +01:00
|
|
|
.include "../../devel/nspr/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2006-01-27 20:47:21 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|