From owner-svn-ports-all@FreeBSD.ORG Thu Feb 28 16:29:04 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CEF249DB; Thu, 28 Feb 2013 16:29:04 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id A7523F95; Thu, 28 Feb 2013 16:29:04 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id r1SGT4ji060063; Thu, 28 Feb 2013 16:29:04 GMT (envelope-from amdmi3@svn.freebsd.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id r1SGT4lk060062; Thu, 28 Feb 2013 16:29:04 GMT (envelope-from amdmi3@svn.freebsd.org) Message-Id: <201302281629.r1SGT4lk060062@svn.freebsd.org> From: Dmitry Marakasov Date: Thu, 28 Feb 2013 16:29:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r313104 - head/games/legesmotus X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2013 16:29:04 -0000 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 -# +# Created by: Dmitry Marakasov # $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 -.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