aboutsummaryrefslogtreecommitdiff
path: root/games/iortcw
diff options
context:
space:
mode:
authorCarlos J. Puga Medina <cpm@FreeBSD.org>2016-12-23 17:30:04 +0000
committerCarlos J. Puga Medina <cpm@FreeBSD.org>2016-12-23 17:30:04 +0000
commit6f884fedee52b3009579fc3aea42a2233467f7d5 (patch)
treeb55a21d4eebb8ba5bddcb00244ef6f6a6d0ce4b9 /games/iortcw
parent9c92b2246fcc5be3a96b78347ca0f962cb6ab872 (diff)
downloadports-6f884fedee52b3009579fc3aea42a2233467f7d5.tar.gz
ports-6f884fedee52b3009579fc3aea42a2233467f7d5.zip
Notes
Diffstat (limited to 'games/iortcw')
-rw-r--r--games/iortcw/Makefile14
-rw-r--r--games/iortcw/distinfo6
-rw-r--r--games/iortcw/files/Makefile4
-rw-r--r--games/iortcw/files/pkg-message.in (renamed from games/iortcw/pkg-message)2
4 files changed, 16 insertions, 10 deletions
diff --git a/games/iortcw/Makefile b/games/iortcw/Makefile
index ebb34b1e18a6..00a36f30eea6 100644
--- a/games/iortcw/Makefile
+++ b/games/iortcw/Makefile
@@ -2,7 +2,8 @@
# $FreeBSD$
PORTNAME= iortcw
-PORTVERSION= 1.42d
+DISTVERSION= 1.5a
+PORTEPOCH= 1
CATEGORIES= games
MAINTAINER= t@tobik.me
@@ -15,7 +16,7 @@ LIB_DEPENDS= libcurl.so:ftp/curl \
libopus.so:audio/opus \
libfreetype.so:print/freetype2
-USES= jpeg openal pkgconfig gmake
+USES= jpeg pkgconfig gmake
USE_GL= gl
USE_SDL= sdl2
@@ -27,8 +28,9 @@ MAKE_ARGS= BINDIR="${STAGEDIR}${PREFIX}/bin" \
PLIST_SUB= ARCH="${ARCH}" WOLFDIR="${WOLFDIR}"
-SUB_FILES= iowolfsp iowolfmp iowolfded
-SUB_LIST= ARCH="${ARCH}" WOLFDIR="${PREFIX}/${WOLFDIR}"
+SUB_FILES= iowolfsp iowolfmp iowolfded pkg-message
+SUB_LIST= ARCH="${ARCH}" WOLFDIR="${PREFIX}/${WOLFDIR}" \
+ DISTVERSION="${DISTVERSION}"
OPTIONS_DEFINE= MP SP
OPTIONS_DEFAULT= MP SP
@@ -48,6 +50,10 @@ BROKEN_aarch64= Fails to configure: error: Architecture not supported
post-extract:
${CP} ${FILESDIR}/Makefile ${WRKSRC}
+post-patch:
+ @${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/SP/Makefile
+ @${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/MP/Makefile
+
post-install-MP-on:
${INSTALL_SCRIPT} ${WRKDIR}/iowolfmp ${STAGEDIR}${PREFIX}/bin/iowolfmp
${INSTALL_SCRIPT} ${WRKDIR}/iowolfded ${STAGEDIR}${PREFIX}/bin/iowolfded
diff --git a/games/iortcw/distinfo b/games/iortcw/distinfo
index b5266bfa452a..f86421e21346 100644
--- a/games/iortcw/distinfo
+++ b/games/iortcw/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1469455810
-SHA256 (iortcw-iortcw-1.42d_GH0.tar.gz) = 78fd5e1639c014af91b076c4034ca2f5d57ce84e8d3d93b84ca13c91e2840d9a
-SIZE (iortcw-iortcw-1.42d_GH0.tar.gz) = 29852958
+TIMESTAMP = 1480523801
+SHA256 (iortcw-iortcw-1.5a_GH0.tar.gz) = 660a7f3ac48e094cad5169ddd284ceef9fdb1a12fa9981d8a51955a08577d617
+SIZE (iortcw-iortcw-1.5a_GH0.tar.gz) = 30620646
diff --git a/games/iortcw/files/Makefile b/games/iortcw/files/Makefile
index 14e49bb488d1..735946a7a780 100644
--- a/games/iortcw/files/Makefile
+++ b/games/iortcw/files/Makefile
@@ -7,12 +7,12 @@ MAKE_ARGS= BUILD_CLIENT=1 \
USE_CURL=1 \
USE_CURL_DLOPEN=0 \
USE_INTERNAL_LIBS=0 \
- USE_OPENAL=1 \
+ USE_OPENAL=0 \
USE_OPENAL_DLOPEN=0 \
USE_INTERNAL_SPEEX=0 \
USE_INTERNAL_ZLIB=0 \
USE_INTERNAL_JPEG=0 \
- CLIENT_LIBS+="-L${PREFIX}/lib -lSDL2 -lcurl -lopenal -lopus" \
+ CLIENT_LIBS+="-L${PREFIX}/lib -lSDL2 -lcurl -lopus" \
USE_INTERNAL_OGG=0 \
USE_INTERNAL_OPUS=0 \
USE_CODEC_VORBIS=0 \
diff --git a/games/iortcw/pkg-message b/games/iortcw/files/pkg-message.in
index 33339f0a562a..7c75229633b9 100644
--- a/games/iortcw/pkg-message
+++ b/games/iortcw/files/pkg-message.in
@@ -4,7 +4,7 @@ To play Return to Castle Wolfenstein:
2. Copy your game files to ~/.wolf. They should be in
"~/.wine/drive_c/Program Files/Return to Castle Wolfenstein"
3. Download patch-data-141.zip (and the language specific patch-data-* file if needed)
- from https://github.com/iortcw/iortcw/releases/tag/1.42d
+ from https://github.com/iortcw/iortcw/releases/tag/%%DISTVERSION%%
4. Extract all patch-data-*.zip in ~/.wolf
5a. Start a single player game with iowolfsp
5b. Or a multiplayer game with iowolfmp