# $OpenBSD: Makefile,v 1.12 2010/10/24 21:11:46 sthen Exp $ SHARED_ONLY= Yes COMMENT= Mozilla's C implementation of JavaScript V= 1.7.0 DISTNAME= js-${V} PKGNAME= spidermonkey-${V}p0v0 SHARED_LIBS= js 2.0 CATEGORIES= lang HOMEPAGE= http://www.mozilla.org/js/spidermonkey/ MAINTAINER= Martynas Venckus # Mozilla Public License PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes MASTER_SITES= http://ftp.mozilla.org/pub/mozilla.org/js/ \ http://ftp.mozilla.org/pub/mozilla.org/js/older-packages/ WANTLIB= c m pthread readline termcap nspr4 LIB_DEPENDS= :nspr->=4.6.3:devel/nspr WRKDIST= ${WRKDIR}/js WRKSRC= ${WRKDIST}/src MAKE_FILE= Makefile.ref MAKE_FLAGS= SO_SUFFIX=so.${LIBjs_VERSION} \ JS_THREADSAFE=YES \ JS_NO_THIN_LOCKS=YES \ XLDFLAGS="-L${LOCALBASE}/lib -pthread" \ XCFLAGS="-I${LOCALBASE}/include/nspr" \ CC=${CC} \ CCC=${CXX} USE_GMAKE= Yes NO_REGRESS= Yes do-install: ${INSTALL_PROGRAM} ${WRKSRC}/Linux_All_DBG.OBJ/js ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/Linux_All_DBG.OBJ/libjs.so.${LIBjs_VERSION} ${PREFIX}/lib ${INSTALL_DATA_DIR} ${PREFIX}/include/js @cd ${WRKSRC} && ${INSTALL_DATA} js*.{h,tbl} \ ${WRKSRC}/Linux_All_DBG.OBJ/jsautocfg.h ${PREFIX}/include/js/ .include