From owner-svn-ports-head@FreeBSD.ORG Sun May 12 11:37:15 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 118D791D; Sun, 12 May 2013 11:37:15 +0000 (UTC) (envelope-from danfe@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 046517CC; Sun, 12 May 2013 11:37:15 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4CBbExH074978; Sun, 12 May 2013 11:37:14 GMT (envelope-from danfe@svn.freebsd.org) Received: (from danfe@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4CBbEVa074972; Sun, 12 May 2013 11:37:14 GMT (envelope-from danfe@svn.freebsd.org) Message-Id: <201305121137.r4CBbEVa074972@svn.freebsd.org> From: Alexey Dokuchaev Date: Sun, 12 May 2013 11:37:14 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r317946 - head/games/fteqw X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 May 2013 11:37:15 -0000 Author: danfe Date: Sun May 12 11:37:14 2013 New Revision: 317946 URL: http://svnweb.freebsd.org/changeset/ports/317946 Log: - Convert old-school Makefile header to the new style - Refactor OPTIONS knobs and provide better descriptions - Define USE_GL more strictly as "gl" instead of vague "yes" - Drop a few shlib ABI versions from LIB_DEPENDS - Get rid of FTE_TARGETS variable (convert to use PLIST_FILES) - Cleanup Makefile and reformat port description while here Modified: head/games/fteqw/Makefile head/games/fteqw/pkg-descr Modified: head/games/fteqw/Makefile ============================================================================== --- head/games/fteqw/Makefile Sun May 12 11:34:08 2013 (r317945) +++ head/games/fteqw/Makefile Sun May 12 11:37:14 2013 (r317946) @@ -1,9 +1,5 @@ -# New ports collection makefile for: fteqw -# Date created: 2 Sep 2006 -# Whom: alepulver -# +# Created by: Alejandro Pulver # $FreeBSD$ -# PORTNAME= fteqw PORTVERSION= 3343 @@ -20,49 +16,49 @@ USE_GMAKE= yes USE_CSTD= gnu89 NO_WRKSUBDIR= yes -OPTIONS_MULTI= EXE -OPTIONS_MULTI_EXE= DEDICATED OPENGL SDL -OPTIONS_DEFINE= OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= DEDICATED OPENGL OPTIMIZED_CFLAGS SDL -DEDICATED_DESC= Build dedicated server - SUB_FILES= pkg-message -.include "${.CURDIR}/../quake-data/Makefile.include" +OPTIONS_DEFINE= OPTIMIZED_CFLAGS +OPTIONS_MULTI= FLAVOR +OPTIONS_MULTI_FLAVOR= GLCLIENT SDLCLIENT SERVER +OPTIONS_DEFAULT= GLCLIENT SDLCLIENT SERVER OPTIMIZED_CFLAGS + +FLAVOR_DESC= Clients and servers +GLCLIENT_DESC= Build OpenGL client +SDLCLIENT_DESC= Build SDL client +SERVER_DESC= Build dedicated server +.include "${.CURDIR}/../quake-data/Makefile.include" .include -.if ${PORT_OPTIONS:MDEDICATED} +.if ${PORT_OPTIONS:MSERVER} ALL_TARGET+= sv-rel PLIST_FILES+= bin/fteqw-sv -FTE_TARGETS+= fteqw.sv .endif -.if ${PORT_OPTIONS:MGL} || !empty(PORT_OPTIONS:MSDL) -LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg \ +.if ${PORT_OPTIONS:MGLCLIENT} || !empty(PORT_OPTIONS:MSDLCLIENT) +LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg \ png15:${PORTSDIR}/graphics/png \ - vorbis.4:${PORTSDIR}/audio/libvorbis + vorbis:${PORTSDIR}/audio/libvorbis CFLAGS+= -I${LOCALBASE}/include/libpng15 .endif -.if ${PORT_OPTIONS:MGL} -USE_GL= yes +.if ${PORT_OPTIONS:MGLCLIENT} +USE_GL= gl ALL_TARGET+= gl-rel PLIST_FILES+= bin/fteqw-gl -FTE_TARGETS+= fteqw.gl -.endif - -.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} -MAKE_ENV+= OPTIMIZED_CFLAGS=true .endif # SDL is used instead of the native X11 software version as it reports a -# memory allocation error at startup. It also fails with USEASM=true. -.if ${PORT_OPTIONS:MSDL} +# memory allocation error at startup. It also fails with USEASM=true. +.if ${PORT_OPTIONS:MSDLCLIENT} USE_SDL= sdl ALL_TARGET+= sw-rel PLIST_FILES+= bin/fteqw-sdl -FTE_TARGETS+= fteqw.sdl +.endif + +.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} +MAKE_ENV+= OPTIMIZED_CFLAGS=true .endif post-patch: @@ -72,8 +68,8 @@ post-patch: ${WRKSRC}/common/plugin.c ${WRKSRC}/server/svq3_game.c do-install: -.for f in ${FTE_TARGETS} - ${INSTALL_PROGRAM} ${WRKSRC}/release/${f} ${PREFIX}/bin/${f:S/./-/} +.for f in ${PLIST_FILES:T} + ${INSTALL_PROGRAM} ${WRKSRC}/release/${f:S/-/./} ${PREFIX}/bin/${f} .endfor post-install: Modified: head/games/fteqw/pkg-descr ============================================================================== --- head/games/fteqw/pkg-descr Sun May 12 11:34:08 2013 (r317945) +++ head/games/fteqw/pkg-descr Sun May 12 11:37:14 2013 (r317946) @@ -1,10 +1,10 @@ The intentions to the FTE QuakeWorld mod are to add some cool features to QuakeWorld, without loosing any (backwards) compatibility. -All QuakeWorld clients should be able to connect to an FTE server, and all FTE -clients should connect to any other QW server. +All QuakeWorld clients should be able to connect to an FTE server, and all +FTE clients should connect to any other QW server. -The FTE client, supports Quake, NetQuake, QuakeWorld, Quake II, Quake III -Arena, Hexen 2, Nexuiz and others. +The FTE client supports Quake, NetQuake, QuakeWorld, Quake II, Quake III +Arena, Hexen 2, Nexuiz, and others. WWW: http://fteqw.com/