aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake2-zaero
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-05-31 22:40:56 +0800
committerjgh <jgh@FreeBSD.org>2013-05-31 22:40:56 +0800
commit5dd3688354ed6e74ed2c8c9e6a5d41dde98c70b6 (patch)
treefd7ac6263851705bfeae2fb7d9dce6af494453c8 /games/quake2-zaero
parentf865d279ae89cb92e74059f7301e136a9da802d8 (diff)
downloadfreebsd-ports-gnome-5dd3688354ed6e74ed2c8c9e6a5d41dde98c70b6.tar.gz
freebsd-ports-gnome-5dd3688354ed6e74ed2c8c9e6a5d41dde98c70b6.tar.zst
freebsd-ports-gnome-5dd3688354ed6e74ed2c8c9e6a5d41dde98c70b6.zip
- adopt optionsNG for games
- trim historical headers and trim comments - some Makefile cleanup Approved by: portmgr (bapt)
Diffstat (limited to 'games/quake2-zaero')
-rw-r--r--games/quake2-zaero/Makefile27
1 files changed, 12 insertions, 15 deletions
diff --git a/games/quake2-zaero/Makefile b/games/quake2-zaero/Makefile
index f088dbcecfe9..057a4e92d8ad 100644
--- a/games/quake2-zaero/Makefile
+++ b/games/quake2-zaero/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: quake2-zaero
-# Date created: 2006-12-24
-# Whom: alepulver
-#
+# Created by: alepulver
# $FreeBSD$
-#
PORTNAME= zaero
PORTVERSION= 1.1
@@ -21,16 +17,17 @@ USE_ZIP= yes
USE_DOS2UNIX= *.[ch]
NO_WRKSUBDIR= yes
-OPTIONS= DEMO "Install demo version of the game data" off \
- DM "Install deathmatch maps" off
+OPTIONS_DEFINE= DEMO DM
+DEMO_DESC= Demo version of the game data
+DM_DESC= Deathmatch maps
DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
.include "${.CURDIR}/../quake2-data/Makefile.include"
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_DEMO)
+.if ${PORT_OPTIONS:MDEMO}
DISTFILES+= zaerodemo${EXTRACT_SUFX}
PLIST_SUB+= DEMO=""
.else
@@ -38,7 +35,7 @@ PLIST_SUB+= DEMO="@comment "
SUB_FILES+= pkg-message
.endif
-.if defined(WITH_DM)
+.if ${PORT_OPTIONS:MDM}
DISTFILES+= zaerodm${EXTRACT_SUFX}
PLIST_SUB+= DM=""
.else
@@ -54,25 +51,25 @@ post-patch:
do-install:
${MKDIR} ${Q2DIR}/${PORTNAME}
${INSTALL_PROGRAM} ${WRKSRC}/game.so ${Q2DIR}/${PORTNAME}
-.if defined(WITH_DEMO)
+.if ${PORT_OPTIONS:MDEMO}
${INSTALL_DATA} ${WRKSRC}/zaero/pak0.pak ${Q2DIR}/${PORTNAME}
${MKDIR} ${Q2DIR}/${PORTNAME}/sprites
${INSTALL_DATA} ${WRKSRC}/zaero/sprites/* ${Q2DIR}/${PORTNAME}/sprites
.endif
${INSTALL_DATA} ${WRKSRC}/pak1.pak ${Q2DIR}/${PORTNAME}
-.if defined(WITH_DM)
+.if ${PORT_OPTIONS:MDM}
${INSTALL_DATA} ${WRKSRC}/zaero/pak2.pak ${Q2DIR}/${PORTNAME}
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/changelog.txt ${DOCSDIR}
.endif
-.if !defined(WITH_DEMO)
+.if ! ${PORT_OPTIONS:MDEMO}
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>