svn commit: r330977 - head/games/quake3-data
Danilo Egea Gondolfo
danilo at FreeBSD.org
Sun Oct 20 05:16:59 UTC 2013
Author: danilo
Date: Sun Oct 20 05:16:59 2013
New Revision: 330977
URL: http://svnweb.freebsd.org/changeset/ports/330977
Log:
- Add stage support
- Simplify options with OPTIONS_SUB
Modified:
head/games/quake3-data/Makefile
Modified: head/games/quake3-data/Makefile
==============================================================================
--- head/games/quake3-data/Makefile Sun Oct 20 05:15:19 2013 (r330976)
+++ head/games/quake3-data/Makefile Sun Oct 20 05:16:59 2013 (r330977)
@@ -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>
More information about the svn-ports-head
mailing list