diff options
author | danfe <danfe@FreeBSD.org> | 2013-05-12 19:37:14 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-05-12 19:37:14 +0800 |
commit | c2b64d94e19f83563bdf4236c8047c64f184ed69 (patch) | |
tree | a3d26aeffbb397d347a7e32dcade78aeb13dd053 /games | |
parent | bd5dc5d912a358d3ac88663e663bc5950c5bd59b (diff) | |
download | freebsd-ports-gnome-c2b64d94e19f83563bdf4236c8047c64f184ed69.tar.gz freebsd-ports-gnome-c2b64d94e19f83563bdf4236c8047c64f184ed69.tar.zst freebsd-ports-gnome-c2b64d94e19f83563bdf4236c8047c64f184ed69.zip |
- 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
Diffstat (limited to 'games')
-rw-r--r-- | games/fteqw/Makefile | 52 | ||||
-rw-r--r-- | games/fteqw/pkg-descr | 8 |
2 files changed, 28 insertions, 32 deletions
diff --git a/games/fteqw/Makefile b/games/fteqw/Makefile index 94f0d7135913..bcab9f1a3073 100644 --- a/games/fteqw/Makefile +++ b/games/fteqw/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: fteqw -# Date created: 2 Sep 2006 -# Whom: alepulver -# +# Created by: Alejandro Pulver <alepulver@FreeBSD.org> # $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 +SUB_FILES= pkg-message + OPTIONS_DEFINE= OPTIMIZED_CFLAGS -OPTIONS_DEFAULT= DEDICATED OPENGL OPTIMIZED_CFLAGS SDL -DEDICATED_DESC= Build dedicated server +OPTIONS_MULTI= FLAVOR +OPTIONS_MULTI_FLAVOR= GLCLIENT SDLCLIENT SERVER +OPTIONS_DEFAULT= GLCLIENT SDLCLIENT SERVER OPTIMIZED_CFLAGS -SUB_FILES= pkg-message +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 <bsd.port.options.mk> -.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: diff --git a/games/fteqw/pkg-descr b/games/fteqw/pkg-descr index 6f5c608f8bda..45a6380a0991 100644 --- a/games/fteqw/pkg-descr +++ b/games/fteqw/pkg-descr @@ -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/ |