diff options
author | pawel <pawel@FreeBSD.org> | 2014-04-10 23:11:27 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-04-10 23:11:27 +0800 |
commit | 6afaadcf712750d86fe707ced7ec964ad8d6c5d0 (patch) | |
tree | 129d1da608767646b93d5f799cc99d1c5085a0cc /games | |
parent | 44606c69b4c56e2d091f1185f1af1d9d3a4f0f01 (diff) | |
download | freebsd-ports-gnome-6afaadcf712750d86fe707ced7ec964ad8d6c5d0.tar.gz freebsd-ports-gnome-6afaadcf712750d86fe707ced7ec964ad8d6c5d0.tar.zst freebsd-ports-gnome-6afaadcf712750d86fe707ced7ec964ad8d6c5d0.zip |
- Add staging support
- Use options subs
Diffstat (limited to 'games')
-rw-r--r-- | games/alephone-data/Makefile | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/games/alephone-data/Makefile b/games/alephone-data/Makefile index a48e28dfb5f4..c548f3deb552 100644 --- a/games/alephone-data/Makefile +++ b/games/alephone-data/Makefile @@ -23,6 +23,7 @@ NO_CDROM= Bungie/Microsoft do not allow charging for Marathon data files 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 data 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> |