aboutsummaryrefslogtreecommitdiff
path: root/games/0ad
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2015-03-21 18:22:51 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2015-03-21 18:22:51 +0000
commitf5291514626c7271bb9440faa5058ebd66b92bb0 (patch)
tree1b76d12d5d93b3cc97344a5cdde8bb52ef371003 /games/0ad
parente924a0684ca0d992c0ccc39abdc74ebf84557b32 (diff)
downloadports-f5291514626c7271bb9440faa5058ebd66b92bb0.tar.gz
ports-f5291514626c7271bb9440faa5058ebd66b92bb0.zip
Notes
Diffstat (limited to 'games/0ad')
-rw-r--r--games/0ad/Makefile28
-rw-r--r--games/0ad/distinfo8
-rw-r--r--games/0ad/pkg-plist2
3 files changed, 17 insertions, 21 deletions
diff --git a/games/0ad/Makefile b/games/0ad/Makefile
index 5f3ec25e126c..1b3bc3590457 100644
--- a/games/0ad/Makefile
+++ b/games/0ad/Makefile
@@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= 0ad
-PORTVERSION= 0.0.17
-PORTREVISION= 4
+PORTVERSION= 0.0.18
CATEGORIES= games
MASTER_SITES= SF/zero-ad/releases
DISTFILES= ${PORTNAME}-${PORTVERSION}-alpha-unix-build.tar.xz \
@@ -28,7 +27,7 @@ LIB_DEPENDS= libboost_thread.so:${PORTSDIR}/devel/boost-libs \
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-alpha
BUILD_WRKSRC= ${WRKSRC}/build/workspaces/gcc
MAKE_ARGS= config=release
-USES= compiler:c++11-lang dos2unix gmake iconv openal:al \
+USES= compiler:c++11-lib dos2unix gmake iconv openal:al \
pkgconfig tar:xz
USE_SDL= sdl
USE_GNOME= libxml2 gtk20
@@ -41,26 +40,25 @@ 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>
+.include <bsd.port.pre.mk>
-.if ${PORT_OPTIONS:MPORTSSM}
-SMOPT= --with-system-mozjs24
+.if ${OSVERSION} < 900044
+BROKEN= Fails to build on FreeBSD 8.x
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
-e 's|%%CC%%|${CC}|' \
${WRKSRC}/build/premake/premake4.lua
+.if ${ARCH} == i386 && ${CHOSEN_COMPILER_TYPE} == gcc
+ @${REINPLACE_CMD} -e '1055,1251s/-rdynamic/-lssp_nonshared &/' \
+ -e '1441s/"execinfo",/& "ssp_nonshared",/' \
+ ${WRKSRC}/build/premake/premake4.lua
+.endif
@${REINPLACE_CMD} 's,^\(Exec=\)/usr/local,\1${PREFIX},' \
${WRKSRC}/build/resources/0ad.desktop
@${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|' \
@@ -75,9 +73,7 @@ do-install:
${INSTALL_PROGRAM} ${WRKSRC}/binaries/system/ActorEditor ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${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
+ (cd ${WRKSRC}/binaries/system && ${INSTALL_LIB} libmozjs31-ps-release.so ${STAGEDIR}${PREFIX}/lib/${PORTNAME})
${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}
@@ -86,4 +82,4 @@ do-install:
${TAR} xf ${WRKSRC}/binaries/data/mods/public/public.zip -C ${STAGEDIR}${DATADIR}/mods/public --no-same-permissions
${TAR} xf ${WRKSRC}/binaries/data/mods/mod/mod.zip -C ${STAGEDIR}${DATADIR}/mods/mod --no-same-permissions
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/games/0ad/distinfo b/games/0ad/distinfo
index f8a22065acc4..394c9a1173e9 100644
--- a/games/0ad/distinfo
+++ b/games/0ad/distinfo
@@ -1,4 +1,4 @@
-SHA256 (0ad-0.0.17-alpha-unix-build.tar.xz) = ef144d44fe8a8abd29a4642999a58a596b8f0d0e1f310065f5ce1dfbe29c3aeb
-SIZE (0ad-0.0.17-alpha-unix-build.tar.xz) = 19327284
-SHA256 (0ad-0.0.17-alpha-unix-data.tar.xz) = 6bf2234ef5043b14a3bbeda013fefed73ce2e564262f5e03b0801bfe671331d0
-SIZE (0ad-0.0.17-alpha-unix-data.tar.xz) = 561617008
+SHA256 (0ad-0.0.18-alpha-unix-build.tar.xz) = bd2f04d3269ae9af104626827446a89ea4a0dd4859f89539701fd331cbae0397
+SIZE (0ad-0.0.18-alpha-unix-build.tar.xz) = 26179952
+SHA256 (0ad-0.0.18-alpha-unix-data.tar.xz) = b1a4078eb945ac873accb45c831dbe988866e3559d16bea189eb439c2c71ac44
+SIZE (0ad-0.0.18-alpha-unix-data.tar.xz) = 571228108
diff --git a/games/0ad/pkg-plist b/games/0ad/pkg-plist
index ea3f7c9ce2a9..5e1b4cd10238 100644
--- a/games/0ad/pkg-plist
+++ b/games/0ad/pkg-plist
@@ -3,7 +3,7 @@ bin/0ad
bin/ActorEditor
lib/0ad/libAtlasUI.so
lib/0ad/libCollada.so
-%%NO_PORTSSM%%lib/0ad/libmozjs24-ps-release.so
+lib/0ad/libmozjs31-ps-release.so
lib/0ad/libnvcore.so
lib/0ad/libnvimage.so
lib/0ad/libnvmath.so