aboutsummaryrefslogtreecommitdiff
path: root/games/alephone-data/Makefile
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-06-12 16:35:45 +0000
commit3a283e24f296371e9b753c09e3e62a92ef3d8703 (patch)
tree88e0a2bbddafb5c9bdc18e8e02c5e59fb9f9d471 /games/alephone-data/Makefile
parent7a0a8929bea1c510b4f30261d294a78b556b49d7 (diff)
downloadports-3a283e24f296371e9b753c09e3e62a92ef3d8703.tar.gz
ports-3a283e24f296371e9b753c09e3e62a92ef3d8703.zip
Notes
Diffstat (limited to 'games/alephone-data/Makefile')
-rw-r--r--games/alephone-data/Makefile30
1 files changed, 15 insertions, 15 deletions
diff --git a/games/alephone-data/Makefile b/games/alephone-data/Makefile
index ef9699c42502..e8eba9191f10 100644
--- a/games/alephone-data/Makefile
+++ b/games/alephone-data/Makefile
@@ -24,17 +24,21 @@ NO_BUILD= yes
NO_WRKSUBDIR= yes
NO_CDROM= Bungie/Microsoft do not allow charging for Marathon data files
-OPTIONS= MARATHON "Install Marathon data" on \
- DURANDAL "Install Marathon 2: Durandal data" on \
- INFINITY "Install Marathon Infinity data" on
+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.pre.mk>
+.include <bsd.port.options.mk>
DATADIR!= cd ${PORTSDIR}/games/alephone && ${MAKE} -V DATADIR
-.if !defined(WITHOUT_MARATHON)
+.if ${PORT_OPTIONS:MMARATHON}
DISTFILES+= M1A1${EXTRACT_SUFX}
PLIST_SUB+= MARATHON=""
AO_PACKS+= marathon
@@ -44,7 +48,7 @@ DESKTOP_ENTRIES+="Marathon" "" "" "alephone-marathon" \
PLIST_SUB+= MARATHON="@comment "
.endif
-.if !defined(WITHOUT_DURANDAL)
+.if ${PORT_OPTIONS:MDURANDAL}
DISTFILES+= Marathon2${EXTRACT_SUFX}
PLIST_SUB+= DURANDAL=""
AO_PACKS+= durandal
@@ -54,7 +58,7 @@ DESKTOP_ENTRIES+="Marathon 2: Durandal" "" "" "alephone-durandal" \
PLIST_SUB+= DURANDAL="@comment "
.endif
-.if !defined(WITHOUT_INFINITY)
+.if ${PORT_OPTIONS:MINFINITY}
DISTFILES+= MarathonInfinity${EXTRACT_SUFX}
PLIST_SUB+= INFINITY=""
AO_PACKS+= infinity
@@ -64,18 +68,14 @@ DESKTOP_ENTRIES+="Marathon Infinity" "" "" "alephone-infinity" \
PLIST_SUB+= INFINITY="@comment "
.endif
-.if empty(AO_PACKS)
-IGNORE= needs at least one game option (MARATHON, DURANDAL and INFINITY)
-.endif
-
post-extract:
-.if !defined(WITHOUT_MARATHON)
+.if ${PORT_OPTIONS:MMARATHON}
@cd ${WRKSRC} && ${MV} M1A1 marathon
.endif
-.if !defined(WITHOUT_DURANDAL)
+.if ${PORT_OPTIONS:MDURANDAL}
@cd ${WRKSRC} && ${MV} "Marathon 2" durandal
.endif
-.if !defined(WITHOUT_INFINITY)
+.if ${PORT_OPTIONS:MINFINITY}
@cd ${WRKSRC} && ${MV} "Marathon Infinity" infinity
.endif
@@ -95,4 +95,4 @@ post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>