mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Add option to allow linking to lang/spidermonkey24 port instead of
using the boundled one. PR: 196304 Submitted by: Kevin Zheng <kevinz5000 at gmail.com>
This commit is contained in:
parent
955f3c9288
commit
412e4dcf34
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375810
@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= 0ad
|
||||
PORTVERSION= 0.0.17
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/zero-ad/releases
|
||||
DISTFILES= ${PORTNAME}-${PORTVERSION}-alpha-unix-build.tar.xz \
|
||||
@ -41,10 +41,22 @@ WX_COMPS= wx:lib
|
||||
WX_UNICODE= yes
|
||||
MAKE_ENV+= JOBS=${_MAKE_JOBS}
|
||||
|
||||
OPTIONS_DEFINE= PORTSSM
|
||||
PORTSSM_DESC= Use lang/spidermonkey24 instead of bundled one
|
||||
|
||||
OPTIONS_SUB= yes
|
||||
PORTSSM_LIB_DEPENDS= libmozjs-24.so:${PORTSDIR}/lang/spidermonkey24
|
||||
|
||||
MANUAL_PACKAGE_BUILD= huge
|
||||
|
||||
PORTDATA= *
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MPORTSSM}
|
||||
SMOPT= --with-system-mozjs24
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
|
||||
-e 's|%%CC%%|${CC}|' \
|
||||
@ -55,14 +67,17 @@ post-patch:
|
||||
${WRKSRC}/build/resources/0ad.sh
|
||||
|
||||
pre-build:
|
||||
(cd ${WRKSRC}/build/workspaces && ${SETENV} ${MAKE_ENV} ./update-workspaces.sh --with-system-miniupnpc --bindir=${PREFIX}/bin --datadir=${DATADIR} --libdir=${PREFIX}/lib/${PORTNAME})
|
||||
(cd ${WRKSRC}/build/workspaces && ${SETENV} ${MAKE_ENV} ./update-workspaces.sh --with-system-miniupnpc ${SMOPT} --bindir=${PREFIX}/bin --datadir=${DATADIR} --libdir=${PREFIX}/lib/${PORTNAME})
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/binaries/system/pyrogenesis ${STAGEDIR}${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/build/resources/0ad.sh ${STAGEDIR}${PREFIX}/bin/0ad
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/binaries/system/ActorEditor ${STAGEDIR}${PREFIX}/bin
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}
|
||||
(cd ${WRKSRC}/binaries/system && ${INSTALL_LIB} libAtlasUI.so libCollada.so libmozjs24-ps-release.so libnvcore.so libnvimage.so libnvmath.so libnvtt.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME})
|
||||
(cd ${WRKSRC}/binaries/system && ${INSTALL_LIB} libAtlasUI.so libCollada.so libnvcore.so libnvimage.so libnvmath.so libnvtt.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME})
|
||||
.if ! ${PORT_OPTIONS:MPORTSSM}
|
||||
(cd ${WRKSRC}/binaries/system && ${INSTALL_LIB} libmozjs24-ps-release.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME})
|
||||
.endif
|
||||
${INSTALL_DATA} ${WRKSRC}/build/resources/0ad.desktop ${STAGEDIR}${PREFIX}/share/applications
|
||||
${INSTALL_DATA} ${WRKSRC}/build/resources/0ad.png ${STAGEDIR}${PREFIX}/share/pixmaps
|
||||
${MKDIR} ${STAGEDIR}${DATADIR}
|
||||
|
@ -3,7 +3,7 @@ bin/0ad
|
||||
bin/ActorEditor
|
||||
lib/0ad/libAtlasUI.so
|
||||
lib/0ad/libCollada.so
|
||||
lib/0ad/libmozjs24-ps-release.so
|
||||
%%NO_PORTSSM%%lib/0ad/libmozjs24-ps-release.so
|
||||
lib/0ad/libnvcore.so
|
||||
lib/0ad/libnvimage.so
|
||||
lib/0ad/libnvmath.so
|
||||
|
Loading…
Reference in New Issue
Block a user