Date: Sun, 20 Oct 2013 05:16:59 +0000 (UTC) From: Danilo Egea Gondolfo <danilo@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r330977 - head/games/quake3-data Message-ID: <201310200516.r9K5GxJq060099@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310200516.r9K5GxJq060099>