aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/bzflag-server/Makefile12
-rw-r--r--games/bzflag/Makefile11
-rw-r--r--games/bzflag/pkg-plist2
4 files changed, 24 insertions, 2 deletions
diff --git a/games/Makefile b/games/Makefile
index 9a28c12c8b63..3a0b4c5b48d7 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -121,6 +121,7 @@
SUBDIR += burrtools
SUBDIR += bygfoot
SUBDIR += bzflag
+ SUBDIR += bzflag-server
SUBDIR += cake
SUBDIR += caph
SUBDIR += capicity
diff --git a/games/bzflag-server/Makefile b/games/bzflag-server/Makefile
new file mode 100644
index 000000000000..a0880dcb7fa1
--- /dev/null
+++ b/games/bzflag-server/Makefile
@@ -0,0 +1,12 @@
+# Created by: Kevin Zheng <kevinz5000@gmail.com>
+# $FreeBSD$
+
+PKGNAMESUFFIX= -server
+CONFLICTS= bzflag-2.*
+
+COMMENT= Multiplayer 3D tank battle game (server only)
+
+SERVER_ONLY= yes
+MASTERDIR= ${.CURDIR}/../bzflag
+
+.include "${MASTERDIR}/Makefile"
diff --git a/games/bzflag/Makefile b/games/bzflag/Makefile
index e9b9819ba084..a8b22719de6c 100644
--- a/games/bzflag/Makefile
+++ b/games/bzflag/Makefile
@@ -7,7 +7,7 @@ CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20source/${PORTVERSION}
MAINTAINER= kevinz5000@gmail.com
-COMMENT= Multiplayer 3D tank battle game
+COMMENT?= Multiplayer 3D tank battle game
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
@@ -16,16 +16,25 @@ LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
GNU_CONFIGURE= yes
USES= libtool tar:bzip2
+
+.ifndef SERVER_ONLY
USE_GL= glew
USE_SDL= sdl
+.endif
MAKE_JOBS_UNSAFE= yes
CONFIGURE_ARGS= --enable-ares-build
CPPFLAGS+= -I ${LOCALBASE}/include
+.ifdef SERVER_ONLY
+CONFIGURE_ARGS+= --disable-client
+PLIST_SUB+= CLIENT="@comment "
+.else
DESKTOP_ENTRIES= "BZFlag" "Battle enemy tanks" \
"${DATADIR}/bzflag-256x256.png" \
"bzflag" "Game;ActionGame;" false
+PLIST_SUB+= CLIENT=""
+.endif
.include <bsd.port.mk>
diff --git a/games/bzflag/pkg-plist b/games/bzflag/pkg-plist
index d862ac178a79..dbf27b7cd7be 100644
--- a/games/bzflag/pkg-plist
+++ b/games/bzflag/pkg-plist
@@ -1,5 +1,5 @@
bin/bzadmin
-bin/bzflag
+%%CLIENT%%bin/bzflag
bin/bzfs
lib/bzflag/HoldTheFlag.so
lib/bzflag/Phoenix.so