aboutsummaryrefslogtreecommitdiff
path: root/games/legesmotus
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-28 16:29:04 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-28 16:29:04 +0000
commit24d0fd25002e5ce8693c6f9554f2dcc067ac9d06 (patch)
treeb5027fb22721ebab513f1b585dfdcf7652908ed5 /games/legesmotus
parentcaead80d92f411a18292bb62af0e62c3258064d9 (diff)
downloadports-24d0fd25002e5ce8693c6f9554f2dcc067ac9d06.tar.gz
ports-24d0fd25002e5ce8693c6f9554f2dcc067ac9d06.zip
Notes
Diffstat (limited to 'games/legesmotus')
-rw-r--r--games/legesmotus/Makefile47
1 files changed, 21 insertions, 26 deletions
diff --git a/games/legesmotus/Makefile b/games/legesmotus/Makefile
index e8d6832b387d..8d3cfea93000 100644
--- a/games/legesmotus/Makefile
+++ b/games/legesmotus/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: legesmotus
-# Date created: 16 Jul 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= legesmotus
PORTVERSION= 0.4.0
@@ -24,10 +20,13 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= *
-OPTIONS= CLIENT "Build client" on \
- SERVER "Build server" on \
- METASERVER "Build metaserver" off \
- SERVERSCANNER "Build server scanner" off
+OPTIONS_MULTI= COMPONENTS
+OPTIONS_MULTI_COMPONENTS=CLIENT SERVER METASERVER SERVERSCANNER
+OPTIONS_DEFAULT=CLIENT SERVER
+CLIENT_DESC= Build client
+SERVER_DESC= Build server
+METASERVER_DESC=Build metaserver
+SERVERSCANNER_DESC=Build server scanner
DESKTOP_ENTRIES="Leges Motus" \
"A team-based, networked, 2D shooter set in zero-gravity" \
@@ -38,38 +37,38 @@ DESKTOP_ENTRIES="Leges Motus" \
.include <bsd.port.options.mk>
-.if defined(WITHOUT_CLIENT)
-PLIST_SUB+= CLIENT="@comment "
-CONFIGURE_ARGS+=--disable-client
-.else
+.if ${PORT_OPTIONS:MCLIENT}
PLIST_SUB+= CLIENT=""
USE_SDL= sdl image ttf mixer
USE_GL= gl
MAN6+= legesmotus.6
+.else
+PLIST_SUB+= CLIENT="@comment "
+CONFIGURE_ARGS+=--disable-client
.endif
-.if defined(WITHOUT_SERVER)
-PLIST_SUB+= SERVER="@comment "
-CONFIGURE_ARGS+=--disable-server
-.else
+.if ${PORT_OPTIONS:MSERVER}
PLIST_SUB+= SERVER=""
MAN6+= lmserver.6
+.else
+PLIST_SUB+= SERVER="@comment "
+CONFIGURE_ARGS+=--disable-server
.endif
-.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) && defined(WITHOUT_METASERVER)
-PLIST_SUB+= DATA="@comment "
-.else
+.if ${PORT_OPTIONS:MCLIENT} || ${PORT_OPTIONS:MSERVER} || ${PORT_OPTIONS:MMETASERVER}
PLIST_SUB+= DATA=""
+.else
+PLIST_SUB+= DATA="@comment "
.endif
-.if defined(WITH_METASERVER)
+.if ${PORT_OPTIONS:MMETASERVER}
PLIST_SUB+= METASERVER=""
CONFIGURE_ARGS+=--enable-metaserver
.else
PLIST_SUB+= METASERVER="@comment "
.endif
-.if defined(WITH_SERVERSCANNER)
+.if ${PORT_OPTIONS:MSERVERSCANNER}
PLIST_SUB+= SERVERSCANNER=""
CONFIGURE_ARGS+=--enable-serverscanner
MAN6+= lmscan.6
@@ -77,8 +76,4 @@ MAN6+= lmscan.6
PLIST_SUB+= SERVERSCANNER="@comment "
.endif
-.if defined(WITHOUT_CLIENT) && defined(WITHOUT_SERVER) && defined(WITHOUT_METASERVER) && defined(WITHOUT_SERVERSCANNER)
-IGNORE= cannot be built with all components disabled. Please rerun 'make config' and enable at least one option
-.endif
-
.include <bsd.port.mk>