freebsd-ports/games/alephone-data/Makefile
Jan Beich ba05b7c659 games/alephone-data: unbreak fetch and mark NO_ARCH
PR:		199229 (partial)
Submitted by:	tkato432@yahoo.com
MFH:		2015Q2
2015-05-01 20:11:34 +00:00

83 lines
2 KiB
Makefile

# Created by: Michael Alyn Miller <malyn@strangeGizmo.com>
# $FreeBSD$
PORTNAME= data
PORTVERSION= 1.0
PORTREVISION= 10
CATEGORIES= games
MASTER_SITES= http://files3.bungie.org/trilogy/
PKGNAMEPREFIX= alephone-
DISTFILES= #
DIST_SUBDIR= alephone
MAINTAINER= ports@FreeBSD.org
COMMENT= Released Marathon data files for the Aleph One port
RUN_DEPENDS= alephone:${PORTSDIR}/games/alephone
USES= zip
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
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
INFINITY_DESC= Install Marathon Infinity data
SUB_FILES= wrapper
.include <bsd.port.options.mk>
DATADIR!= cd ${PORTSDIR}/games/alephone && ${MAKE} -V DATADIR
.if ${PORT_OPTIONS:MMARATHON}
DISTFILES+= M1A1${EXTRACT_SUFX}
AO_PACKS+= marathon
DESKTOP_ENTRIES+="Marathon" "" "" "alephone-marathon" \
"Game;ActionGame;" false
.endif
.if ${PORT_OPTIONS:MDURANDAL}
DISTFILES+= Marathon2${EXTRACT_SUFX}
AO_PACKS+= durandal
DESKTOP_ENTRIES+="Marathon 2: Durandal" "" "" "alephone-durandal" \
"Game;ActionGame;" false
.endif
.if ${PORT_OPTIONS:MINFINITY}
DISTFILES+= MarathonInfinity${EXTRACT_SUFX}
AO_PACKS+= infinity
DESKTOP_ENTRIES+="Marathon Infinity" "" "" "alephone-infinity" \
"Game;ActionGame;" false
.endif
post-extract:
.if ${PORT_OPTIONS:MMARATHON}
@cd ${WRKSRC} && ${MV} M1A1 marathon
.endif
.if ${PORT_OPTIONS:MDURANDAL}
@cd ${WRKSRC} && ${MV} "Marathon 2" durandal
.endif
.if ${PORT_OPTIONS:MINFINITY}
@cd ${WRKSRC} && ${MV} "Marathon Infinity" infinity
.endif
pre-install:
.for f in ${AO_PACKS}
@cd ${WRKSRC} && ${SED} -e 's|%%GAMEDIR%%|${f}|' wrapper > alephone-${f}
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
.for f in ${AO_PACKS}
${INSTALL_SCRIPT} ${WRKSRC}/alephone-${f} ${STAGEDIR}${PREFIX}/bin
${CP} -R ${WRKSRC}/${f} ${STAGEDIR}${DATADIR}
.endfor
.include <bsd.port.mk>