blob: cf8ab893bf60865e4c78b0a22e61185e6dc22034 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# Created by: Michael Alyn Miller <malyn@strangeGizmo.com>
# $FreeBSD$
PORTNAME= data
PORTVERSION= 1.0
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= http://www.mariusnet.com/files/Marathon/
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
USE_ZIP= 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
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}
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:
.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:
.for f in ${AO_PACKS}
${INSTALL_SCRIPT} ${WRKSRC}/alephone-${f} ${PREFIX}/bin
${CP} -R ${WRKSRC}/${f} ${DATADIR}
.endfor
post-install:
@${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.mk>
|