From 7894a6d10dfbdeca670ab50fb8c531c3857b3843 Mon Sep 17 00:00:00 2001 From: danfe Date: Tue, 3 May 2005 02:34:58 +0000 Subject: - 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 --- games/uhexen/Makefile | 42 +++++++++++++----------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) (limited to 'games/uhexen') 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 .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 -- cgit