aboutsummaryrefslogtreecommitdiffstats
path: root/games/quake3-data
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-10-20 13:16:59 +0800
committerdanilo <danilo@FreeBSD.org>2013-10-20 13:16:59 +0800
commitb81c883f7bbba3d8924044f91b07308609318db6 (patch)
tree7876867a67b49a626a87a76604b0bbfe4e584cdd /games/quake3-data
parent4aff5def60012f9df97d08a56262f96c5059a5a3 (diff)
downloadfreebsd-ports-gnome-b81c883f7bbba3d8924044f91b07308609318db6.tar.gz
freebsd-ports-gnome-b81c883f7bbba3d8924044f91b07308609318db6.tar.zst
freebsd-ports-gnome-b81c883f7bbba3d8924044f91b07308609318db6.zip
- Add stage support
- Simplify options with OPTIONS_SUB
Diffstat (limited to 'games/quake3-data')
-rw-r--r--games/quake3-data/Makefile23
1 files changed, 6 insertions, 17 deletions
diff --git a/games/quake3-data/Makefile b/games/quake3-data/Makefile
index 944c8744ed62..cdb6e42863fc 100644
--- a/games/quake3-data/Makefile
+++ b/games/quake3-data/Makefile
@@ -22,19 +22,13 @@ SUB_FILES= pkg-message
OPTIONS_DEFINE= TEAMARENA
OPTIONS_DEFAULT= TEAMARENA
+OPTIONS_SUB= yes
TEAMARENA_DESC= Install Quake III Team Arena data files
-NO_STAGE= yes
.include "Makefile.include" # must be included before bsd.port.options.mk
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MTEAMARENA}
-PLIST_SUB+= TEAMARENA=""
-.else
-PLIST_SUB+= TEAMARENA="@comment "
-.endif
-
do-extract:
@${RM} -rf ${WRKDIR}
@${MKDIR} ${WRKDIR}
@@ -42,17 +36,12 @@ do-extract:
${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | ${TAR} xzf -
do-install:
- @${MKDIR} ${DATADIR}
- ${CP} -a ${WRKSRC}/baseq3 ${DATADIR}
- @${MKDIR} ${PREFIX}/share/pixmaps
- ${INSTALL_DATA} ${WRKSRC}/quake3.xpm ${PREFIX}/share/pixmaps
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${CP} -a ${WRKSRC}/baseq3 ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/quake3.xpm ${STAGEDIR}${PREFIX}/share/pixmaps
.if ${PORT_OPTIONS:MTEAMARENA}
- ${CP} -a ${WRKSRC}/missionpack ${DATADIR}
+ ${CP} -a ${WRKSRC}/missionpack ${STAGEDIR}${DATADIR}
.endif
-post-install:
- @${ECHO_CMD}
- @${CAT} ${PKGMESSAGE}
- @${ECHO_CMD}
-
.include <bsd.port.mk>