diff options
author | danfe <danfe@FreeBSD.org> | 2005-05-03 10:34:58 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2005-05-03 10:34:58 +0800 |
commit | 7894a6d10dfbdeca670ab50fb8c531c3857b3843 (patch) | |
tree | fb009406af575290011d9ca4c25135fe249abbcc | |
parent | 531502183c01147c60b39c65558766cede05b98f (diff) | |
download | freebsd-ports-gnome-7894a6d10dfbdeca670ab50fb8c531c3857b3843.tar.gz freebsd-ports-gnome-7894a6d10dfbdeca670ab50fb8c531c3857b3843.tar.zst freebsd-ports-gnome-7894a6d10dfbdeca670ab50fb8c531c3857b3843.zip |
- Reword OPTIONS text slightly to be more specific
- Don't mention knobs in pre-everything::, we have OPTIONS now
- Retire WITHOUT_WAD knob, reorder to DTRT
- Create directories and touch files silently
-rw-r--r-- | games/uhexen/Makefile | 42 |
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> |