summaryrefslogtreecommitdiffstats
path: root/games/uhexen
diff options
context:
space:
mode:
authoroliver <oliver@FreeBSD.org>2003-12-15 18:41:52 +0000
committeroliver <oliver@FreeBSD.org>2003-12-15 18:41:52 +0000
commitcf7b700633a03ed69cefd68a18de6a56fe76ad39 (patch)
tree7965110a31dafa9ae0587414ad4cc037c8e30928 /games/uhexen
parent34f8b8a327831c653a33ccb3eac60499dce10551 (diff)
downloadFreeBSD-ports-cf7b700633a03ed69cefd68a18de6a56fe76ad39.zip
FreeBSD-ports-cf7b700633a03ed69cefd68a18de6a56fe76ad39.tar.gz
download and install the shareware .wad file if WITHOUT_WAD isn't specified
Diffstat (limited to 'games/uhexen')
-rw-r--r--games/uhexen/Makefile29
-rw-r--r--games/uhexen/distinfo1
-rw-r--r--games/uhexen/pkg-plist5
3 files changed, 33 insertions, 2 deletions
diff --git a/games/uhexen/Makefile b/games/uhexen/Makefile
index 7f9057a..a8e2607 100644
--- a/games/uhexen/Makefile
+++ b/games/uhexen/Makefile
@@ -10,12 +10,19 @@ PORTVERSION= 0.601
CATEGORIES= games
MASTER_SITES= http://uhexen.sourceforge.net/
DISTNAME= ${PORTNAME}-latest
+.if !defined(WITHOUT_WAD)
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} hexen.zip
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.endif
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet another port of Hexen, popular game from Raven Softrware
LIB_DEPENDS= SDL-1.1.5:${PORTSDIR}/devel/sdl12 \
SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+.if !defined(WITHOUT_WAD)
+EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
+.endif
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
@@ -25,9 +32,31 @@ USE_X_PREFIX= yes
USE_GMAKE= yes
MAKE_ENV= SDL_CONFIG="${SDL_CONFIG}"
+.if defined(WITHOUT_WAD)
+PLIST_SUB= WAD:="@comment "
+.else
+PLIST_SUB= WAD:=""
+.endif
+
+pre-everything::
+ @${ECHO} ""
+ @${ECHO} "You may use the following build options:"
+ @${ECHO} ""
+ @${ECHO} " WITHOUT_WAD=yes Don't install the wad file."
+ @${ECHO} ""
+
+post-extract:
+.if !defined(WITHOUT_WAD)
+ @${LOCALBASE}/bin/unzip -qo ${_DISTDIR}/hexen.zip \
+ -d ${WRKSRC}
+.endif
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uhexen ${PREFIX}/bin
${MKDIR} ${DATADIR}
+.if !defined(WITHOUT_WAD)
+ ${INSTALL_DATA} ${WRKSRC}/hexen.wad ${DATADIR}
+.endif
${TOUCH} ${DATADIR}/.keep_me
.include <bsd.port.mk>
diff --git a/games/uhexen/distinfo b/games/uhexen/distinfo
index 9f30203..348233f 100644
--- a/games/uhexen/distinfo
+++ b/games/uhexen/distinfo
@@ -1 +1,2 @@
MD5 (uhexen-latest.tar.gz) = 28fb8421206a973165b698a2b4383408
+MD5 (hexen.zip) = 2315c324cb0647ac6663f75d8ac98bc2
diff --git a/games/uhexen/pkg-plist b/games/uhexen/pkg-plist
index 3ada5ad..c4b4999 100644
--- a/games/uhexen/pkg-plist
+++ b/games/uhexen/pkg-plist
@@ -1,3 +1,4 @@
bin/uhexen
-share/uhexen/.keep_me
-@dirrm share/uhexen
+%%DATADIR%%/.keep_me
+%%WAD%%%%DATADIR%%/hexen.wad
+@dirrm %%DATADIR%%
OpenPOWER on IntegriCloud