Date: Thu, 10 Apr 2014 15:11:27 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r350813 - head/games/alephone-data Message-ID: <201404101511.s3AFBR94088450@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Thu Apr 10 15:11:27 2014 New Revision: 350813 URL: http://svnweb.freebsd.org/changeset/ports/350813 QAT: https://qat.redports.org/buildarchive/r350813/ Log: - Add staging support - Use options subs Modified: head/games/alephone-data/Makefile Modified: head/games/alephone-data/Makefile ============================================================================== --- head/games/alephone-data/Makefile Thu Apr 10 15:00:58 2014 (r350812) +++ head/games/alephone-data/Makefile Thu Apr 10 15:11:27 2014 (r350813) @@ -23,6 +23,7 @@ NO_CDROM= Bungie/Microsoft do not allow OPTIONS_MULTI= AO OPTIONS_MULTI_AO= MARATHON DURANDAL INFINITY OPTIONS_DEFAULT= MARATHON DURANDAL INFINITY +OPTIONS_SUB= yes MARATHON_DESC= Install Marathon data DURANDAL_DESC= Install Marathon 2: Durandal data @@ -30,39 +31,29 @@ INFINITY_DESC= Install Marathon Infinity SUB_FILES= wrapper -NO_STAGE= yes .include <bsd.port.options.mk> DATADIR!= cd ${PORTSDIR}/games/alephone && ${MAKE} -V DATADIR .if ${PORT_OPTIONS:MMARATHON} DISTFILES+= M1A1${EXTRACT_SUFX} -PLIST_SUB+= MARATHON="" AO_PACKS+= marathon DESKTOP_ENTRIES+="Marathon" "" "" "alephone-marathon" \ "Game;ActionGame;" false -.else -PLIST_SUB+= MARATHON="@comment " .endif .if ${PORT_OPTIONS:MDURANDAL} DISTFILES+= Marathon2${EXTRACT_SUFX} -PLIST_SUB+= DURANDAL="" AO_PACKS+= durandal DESKTOP_ENTRIES+="Marathon 2: Durandal" "" "" "alephone-durandal" \ "Game;ActionGame;" false -.else -PLIST_SUB+= DURANDAL="@comment " .endif .if ${PORT_OPTIONS:MINFINITY} DISTFILES+= MarathonInfinity${EXTRACT_SUFX} -PLIST_SUB+= INFINITY="" AO_PACKS+= infinity DESKTOP_ENTRIES+="Marathon Infinity" "" "" "alephone-infinity" \ "Game;ActionGame;" false -.else -PLIST_SUB+= INFINITY="@comment " .endif post-extract: @@ -82,14 +73,10 @@ pre-install: .endfor do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} .for f in ${AO_PACKS} - ${INSTALL_SCRIPT} ${WRKSRC}/alephone-${f} ${PREFIX}/bin - ${CP} -R ${WRKSRC}/${f} ${DATADIR} + ${INSTALL_SCRIPT} ${WRKSRC}/alephone-${f} ${STAGEDIR}${PREFIX}/bin + ${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR} .endfor -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?201404101511.s3AFBR94088450>