aboutsummaryrefslogtreecommitdiff
path: root/games/uhexen
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2005-05-03 02:34:58 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2005-05-03 02:34:58 +0000
commit63e75df5a86672d915387824d789f2244f528230 (patch)
tree1b92b38924ae2b0545a9222a7de91ef548a671c4 /games/uhexen
parentd74d7266f44c1262a87c3eca8dea951872b2f711 (diff)
downloadports-63e75df5a86672d915387824d789f2244f528230.tar.gz
ports-63e75df5a86672d915387824d789f2244f528230.zip
Notes
Diffstat (limited to 'games/uhexen')
-rw-r--r--games/uhexen/Makefile42
1 files changed, 13 insertions, 29 deletions
diff --git a/games/uhexen/Makefile b/games/uhexen/Makefile
index 53d7bb836e8e..de5930190185 100644
--- a/games/uhexen/Makefile
+++ b/games/uhexen/Makefile
@@ -11,32 +11,29 @@ PORTREVISION= 2
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= danfe@FreeBSD.org
COMMENT= Yet another port of Hexen, popular game from Raven Software
-OPTIONS= NOWAD "Don't install WAD file" off
-
USE_SDL= mixer sdl
USE_X_PREFIX= yes
USE_GMAKE= yes
+OPTIONS= NOWAD "Do not install demo-version WAD file" off
+
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "Does not compile on !i386"
.endif
-.if defined(WITH_NOWAD)
-WITHOUT_WAD= yes
-.endif
-
-.if !defined(WITHOUT_WAD)
-EXTRACT_DEPENDS=unzip:${PORTSDIR}/archivers/unzip
+.if !defined(WITH_NOWAD)
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} hexen.zip
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
+PLIST_SUB= WAD=""
+.else
+PLIST_SUB= WAD="@comment "
.endif
PLIST_FILES= bin/uhexen %%DATADIR%%/.keep_me %%WAD%%%%DATADIR%%/hexen.wad
@@ -44,31 +41,18 @@ PLIST_DIRS= %%DATADIR%%
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-.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} " WITH_NOWAD=yes Don't install the wad file."
- @${ECHO} ""
-
post-extract:
-.if !defined(WITHOUT_WAD)
+.if !defined(WITH_NOWAD)
@${LOCALBASE}/bin/unzip -qo ${_DISTDIR}/hexen.zip \
-d ${WRKSRC}
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uhexen ${PREFIX}/bin
- ${MKDIR} ${DATADIR}
-.if !defined(WITHOUT_WAD)
+ @${MKDIR} ${DATADIR}
+.if !defined(WITH_NOWAD)
${INSTALL_DATA} ${WRKSRC}/hexen.wad ${DATADIR}
.endif
- ${TOUCH} ${DATADIR}/.keep_me
+ @${TOUCH} ${DATADIR}/.keep_me
.include <bsd.port.post.mk>