Date: Thu, 28 Feb 2013 16:29:04 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313104 - head/games/legesmotus Message-ID: <201302281629.r1SGT4lk060062@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Feb 28 16:29:04 2013 New Revision: 313104 URL: http://svnweb.freebsd.org/changeset/ports/313104 Log: - OptionsNG - Trim header Modified: head/games/legesmotus/Makefile Modified: head/games/legesmotus/Makefile ============================================================================== --- head/games/legesmotus/Makefile Thu Feb 28 16:27:13 2013 (r313103) +++ head/games/legesmotus/Makefile Thu Feb 28 16:29:04 2013 (r313104) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302281629.r1SGT4lk060062>