diff options
author | danfe <danfe@FreeBSD.org> | 2013-05-12 20:15:23 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2013-05-12 20:15:23 +0800 |
commit | 74464fa45d20b22ac2f9456d5a94b052c4ba6583 (patch) | |
tree | 31e2da6c76f14088567b5bcd37c61fecc4db40c8 /games/worldofpadman | |
parent | 99e3bcef01772d6b24fb6a78a49ccdd874941afd (diff) | |
download | freebsd-ports-gnome-74464fa45d20b22ac2f9456d5a94b052c4ba6583.tar.gz freebsd-ports-gnome-74464fa45d20b22ac2f9456d5a94b052c4ba6583.tar.zst freebsd-ports-gnome-74464fa45d20b22ac2f9456d5a94b052c4ba6583.zip |
- Rename DEDICATED option to SERVER, add missing FLAVOR_DESC
- Ensure that USE_GL is set, as SDL can be compiled without GL support
- Adjust one PLIST_SUB: SMP -> SMPCLIENT
Diffstat (limited to 'games/worldofpadman')
-rw-r--r-- | games/worldofpadman/Makefile | 26 | ||||
-rw-r--r-- | games/worldofpadman/pkg-plist | 4 |
2 files changed, 16 insertions, 14 deletions
diff --git a/games/worldofpadman/Makefile b/games/worldofpadman/Makefile index 59f19b060340..e6d642d6ba2a 100644 --- a/games/worldofpadman/Makefile +++ b/games/worldofpadman/Makefile @@ -22,23 +22,24 @@ MAKE_ENV= DEFAULT_BASEDIR="${DATADIR}" PTHREAD_LIBS="${PTHREAD_LIBS}" ALL_TARGET= release NO_PACKAGE= package will be ~600MB; set FORCE_PACKAGE if you really want it +SRC_FILE= ${PORTNAME}-${PORTVERSION} +VM_ARCHS= amd64 i386 powerpc + OPTIONS_DEFINE= CURL CURL_DLOPEN GAMELIBS MP3 OPENAL OPENAL_DLOPEN \ OPTIMIZED_CFLAGS VORBIS -OPTIONS_MULTI= TYPE -OPTIONS_MULTI_TYPE= CLIENT DEDICATED SMP_CLIENT -OPTIONS_DEFAULT= CLIENT CURL CURL_DLOPEN DEDICATED OPTIMIZED_CFLAGS \ +OPTIONS_MULTI= FLAVOR +OPTIONS_MULTI_FLAVOR= CLIENT SERVER SMP_CLIENT +OPTIONS_DEFAULT= CLIENT CURL CURL_DLOPEN SERVER OPTIMIZED_CFLAGS \ VORBIS SMP_CLIENT +FLAVOR_DESC= Clients and servers CLIENT_DESC= Build client CURL_DLOPEN_DESC= Enable dynamic loading of cURL -DEDICATED_DESC= Build dedicated server +SERVER_DESC= Build dedicated server GAMELIBS_DESC= Force building game libraries OPENAL_DLOPEN_DESC= Enable dynamic loading of OpenAL SMP_CLIENT_DESC= Build SMP (threaded) client -SRC_FILE= ${PORTNAME}-${PORTVERSION} -VM_ARCHS= amd64 i386 powerpc - .include <bsd.port.options.mk> .for arch in ${ARCH} @@ -69,6 +70,7 @@ MAKE_ENV+= USE_OPENAL_DLOPEN=1 . endif . endif # SDL +USE_GL= glu USE_SDL= sdl # Vorbis . if ${PORT_OPTIONS:MVORBIS} @@ -85,12 +87,12 @@ WOPBIN+= wop PLIST_SUB+= CLIENT="@comment " .endif -.if ${PORT_OPTIONS:MDEDICATED} +.if ${PORT_OPTIONS:MSERVER} MAKE_ENV+= BUILD_SERVER=1 -PLIST_SUB+= DEDICATED="" +PLIST_SUB+= SERVER="" WOPBIN+= wopded .else -PLIST_SUB+= DEDICATED="@comment " +PLIST_SUB+= SERVER="@comment " .endif .if ${PORT_OPTIONS:MGAMELIBS} || !defined(HAVE_VM_COMPILED) @@ -111,10 +113,10 @@ MAKE_ENV+= USE_OPTIMIZED_CFLAGS=1 .if ${PORT_OPTIONS:MSMP_CLIENT} MAKE_ENV+= BUILD_CLIENT_SMP=1 -PLIST_SUB+= SMP="" +PLIST_SUB+= SMPCLIENT="" WOPBIN+= wop-smp .else -PLIST_SUB+= SMP="@comment " +PLIST_SUB+= SMPCLIENT="@comment " .endif post-extract: diff --git a/games/worldofpadman/pkg-plist b/games/worldofpadman/pkg-plist index 96bc3b088f13..c0078b393d48 100644 --- a/games/worldofpadman/pkg-plist +++ b/games/worldofpadman/pkg-plist @@ -1,6 +1,6 @@ %%CLIENT%%bin/worldofpadman -%%SMP%%bin/worldofpadman-smp -%%DEDICATED%%bin/worldofpadmanded +%%SMPCLIENT%%bin/worldofpadman-smp +%%SERVER%%bin/worldofpadmanded %%PORTDOCS%%%%DOCSDIR%%/banner.html %%PORTDOCS%%%%DOCSDIR%%/copyright_de.html %%PORTDOCS%%%%DOCSDIR%%/copyright_en.html |