aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorOliver Lehmann <oliver@FreeBSD.org>2003-12-15 18:41:52 +0000
committerOliver Lehmann <oliver@FreeBSD.org>2003-12-15 18:41:52 +0000
commit0020b4940dd94165bce561631b545b23542dd3b0 (patch)
tree67828085c038b709b121f66cf8d487b51aa2e874 /games
parent7b1da8d969c59fdfdc9e9c56c303b0c1debef355 (diff)
downloadports-0020b4940dd94165bce561631b545b23542dd3b0.tar.gz
ports-0020b4940dd94165bce561631b545b23542dd3b0.zip
Notes
Diffstat (limited to 'games')
-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 7f9057a5fc6f..a8e2607116dc 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 9f30203461d6..348233f086e7 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 3ada5adac1ba..c4b4999ec93f 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%%