aboutsummaryrefslogtreecommitdiffstats
path: root/games/doom-hr
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-11-16 10:51:45 +0800
committerdanilo <danilo@FreeBSD.org>2013-11-16 10:51:45 +0800
commitaf8b68d377ff233f0dbfc625ffcb1e717e5cea03 (patch)
treea2a3f1ca7084cbcf373eb0b8d45465dd421dd09b /games/doom-hr
parente0d2b2aa2e404e17d5d4633b3d2af9a34111b0f9 (diff)
downloadfreebsd-ports-gnome-af8b68d377ff233f0dbfc625ffcb1e717e5cea03.tar.gz
freebsd-ports-gnome-af8b68d377ff233f0dbfc625ffcb1e717e5cea03.tar.zst
freebsd-ports-gnome-af8b68d377ff233f0dbfc625ffcb1e717e5cea03.zip
- Use options helpers
- Add stage support
Diffstat (limited to 'games/doom-hr')
-rw-r--r--games/doom-hr/Makefile32
1 files changed, 10 insertions, 22 deletions
diff --git a/games/doom-hr/Makefile b/games/doom-hr/Makefile
index 2371346770f6..cb2b6fd34e11 100644
--- a/games/doom-hr/Makefile
+++ b/games/doom-hr/Makefile
@@ -27,9 +27,13 @@ OPTIONS_DEFAULT= DEMO_NM DEMO_UV
DEMO_NM_DESC= Install demos with -nomonsters
DEMO_UV_DESC= Install Ultra-Violence demos
+OPTIONS_SUB= yes
+
DATADIR= ${DMDIR}/${PORTNAME}
-NO_STAGE= yes
+DEMO_NM_DISTFILES= hrhelp${EXTRACT_SUFX}
+DEMO_UV_DISTFILES= hruvlmp2${EXTRACT_SUFX}
+
post-extract:
@(cd ${WRKDIR} && ${SH} ${SCRIPTDIR}/lowercase.sh)
@@ -37,29 +41,13 @@ post-extract:
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDEMO_NM}
-DISTFILES+= hrhelp${EXTRACT_SUFX}
-PLIST_SUB+= DEMO_NM=""
-.else
-PLIST_SUB+= DEMO_NM="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MDEMO_UV}
-DISTFILES+= hruvlmp2${EXTRACT_SUFX}
-PLIST_SUB+= DEMO_UV=""
-.else
-PLIST_SUB+= DEMO_UV="@comment "
-.endif
-
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/*.wad ${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.wad ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDEMO_NM} || !empty(PORT_OPTIONS:MDEMO_UV)
- ${INSTALL_DATA} ${WRKSRC}/*.lmp ${DATADIR}
-.endif
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.txt ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.lmp ${STAGEDIR}${DATADIR}
.endif
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>