1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

- 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
This commit is contained in:
Alexey Dokuchaev 2013-05-12 11:37:14 +00:00
parent 6c23840737
commit e59a968416
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=317946
2 changed files with 31 additions and 35 deletions

View File

@ -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,51 +16,51 @@ 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 <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
# 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:MSDLCLIENT}
USE_SDL= sdl
ALL_TARGET+= sw-rel
PLIST_FILES+= bin/fteqw-sdl
.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}
USE_SDL= sdl
ALL_TARGET+= sw-rel
PLIST_FILES+= bin/fteqw-sdl
FTE_TARGETS+= fteqw.sdl
.endif
post-patch:
@${REINPLACE_CMD} -e 's/alloca\.h/stdlib.h/' \
${WRKSRC}/gl/gl_alias.c ${WRKSRC}/common/com_mesh.c
@ -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:

View File

@ -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/