aboutsummaryrefslogtreecommitdiff
path: root/games/iortcw
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2018-03-08 03:55:10 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2018-03-08 03:55:10 +0000
commit001afd2ce3cf0f6a08de4351d5ce478af6d2cebb (patch)
tree57de1659c8c13caa4e5379c713d4abd52dc8d358 /games/iortcw
parentec76d0ea6ad6388283f4244fa0b430b496ff923a (diff)
downloadports-001afd2ce3cf0f6a08de4351d5ce478af6d2cebb.tar.gz
ports-001afd2ce3cf0f6a08de4351d5ce478af6d2cebb.zip
games/iortcw: Add desktop entries
Notes
Notes: svn path=/head/; revision=463861
Diffstat (limited to 'games/iortcw')
-rw-r--r--games/iortcw/Makefile9
-rw-r--r--games/iortcw/pkg-plist1
2 files changed, 10 insertions, 0 deletions
diff --git a/games/iortcw/Makefile b/games/iortcw/Makefile
index ecd3f2c4e679..28b7958af879 100644
--- a/games/iortcw/Makefile
+++ b/games/iortcw/Makefile
@@ -3,6 +3,7 @@
PORTNAME= iortcw
DISTVERSION= 1.51
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= games
@@ -43,9 +44,13 @@ MP_DESC= Build multiplayer support
SP_DESC= Build singleplayer support
SP_ALL_TARGET= sp
+SP_DESKTOP_ENTRIES= "Return to Castle Wolfenstein" "Return to Castle Wolfenstein" \
+ "${DATADIR}/wolf512.png" "iowolfsp" "Game;" false
SP_INSTALL_TARGET= sp-install
MP_ALL_TARGET= mp
+MP_DESKTOP_ENTRIES= "Return to Castle Wolfenstein (MP)" "Return to Castle Wolfenstein Multiplayer" \
+ "${DATADIR}/wolf512.png" "iowolfmp" "Game;" false
MP_INSTALL_TARGET= mp-install
post-extract:
@@ -55,6 +60,10 @@ post-patch:
@${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/SP/Makefile
@${REINPLACE_CMD} '/\.git\/index/d' ${WRKSRC}/MP/Makefile
+post-install:
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/MP/misc/wolf512.png ${STAGEDIR}${DATADIR}
+
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/pkg-plist b/games/iortcw/pkg-plist
index 758ef6615479..1bc77305e197 100644
--- a/games/iortcw/pkg-plist
+++ b/games/iortcw/pkg-plist
@@ -15,3 +15,4 @@
%%SP%%%%WOLFDIR%%/renderer_sp_opengl1_%%ARCH%%.so
%%SP%%%%WOLFDIR%%/renderer_sp_rend2_%%ARCH%%.so
%%SP%%bin/iowolfsp
+%%DATADIR%%/wolf512.png