aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-12 00:28:05 +0000
committerNeil Blakey-Milner <nbm@FreeBSD.org>2000-08-12 00:28:05 +0000
commit5ab279640f9b6510d7a1687b4ebf34fbfa141e28 (patch)
tree40391b5bc80d43cde5dfb24da71a2e84600b7037 /games
parentaf389574fff30018017c66166974084f313d6d4d (diff)
downloadports-5ab279640f9b6510d7a1687b4ebf34fbfa141e28.tar.gz
ports-5ab279640f9b6510d7a1687b4ebf34fbfa141e28.zip
Notes
Diffstat (limited to 'games')
-rw-r--r--games/Makefile1
-rw-r--r--games/bzflag/Makefile28
-rw-r--r--games/bzflag/distinfo1
-rw-r--r--games/bzflag/files/config-sys106
-rw-r--r--games/bzflag/files/patch-LinuxMedia.cxx27
-rw-r--r--games/bzflag/files/patch-common.h14
-rw-r--r--games/bzflag/files/patch-man-Makefile25
-rw-r--r--games/bzflag/files/patch-network.h11
-rw-r--r--games/bzflag/pkg-comment1
-rw-r--r--games/bzflag/pkg-descr16
-rw-r--r--games/bzflag/pkg-plist4
11 files changed, 234 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile
index c8009d918ed3..76fe09658622 100644
--- a/games/Makefile
+++ b/games/Makefile
@@ -29,6 +29,7 @@
SUBDIR += bs
SUBDIR += bugsx
SUBDIR += CaribbeanStud
+ SUBDIR += bzflag
SUBDIR += cgoban
SUBDIR += columns
SUBDIR += connect4
diff --git a/games/bzflag/Makefile b/games/bzflag/Makefile
new file mode 100644
index 000000000000..84c32c6ef865
--- /dev/null
+++ b/games/bzflag/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: bzflag
+# Date created: 2000/08/12
+# Whom: makeport.pl
+#
+# $FreeBSD$
+#
+
+PORTNAME= bzflag
+PORTVERSION= 1.7d.9
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= bzflag
+EXTRACT_SUFX= .src.tar.gz
+
+MAINTAINER= nbm@FreeBSD.org
+
+WRKSRC= ${WRKDIR}/bzflag
+
+MAN6= bzflag.6 bzfrelay.6 bzfls.6 bzfs.6
+
+do-configure:
+ @${CP} ${FILESDIR}/config-sys ${WRKSRC}/
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
+ @${INSTALL_MAN} ${WRKSRC}/man/*.6 ${PREFIX}/man/man6/
+
+.include <bsd.port.mk>
diff --git a/games/bzflag/distinfo b/games/bzflag/distinfo
new file mode 100644
index 000000000000..1a76f7f87ded
--- /dev/null
+++ b/games/bzflag/distinfo
@@ -0,0 +1 @@
+MD5 (bzflag-1.7d.9.src.tar.gz) = ac2f83940581c5a9b4f0e09b4931c82a
diff --git a/games/bzflag/files/config-sys b/games/bzflag/files/config-sys
new file mode 100644
index 000000000000..aa9c32405924
--- /dev/null
+++ b/games/bzflag/files/config-sys
@@ -0,0 +1,106 @@
+# bzflag
+# Copyright 1993-1999, Chris Schoeneman
+#
+# This package is free software; you can redistribute it and/or
+# modify it under the terms of the license found in the file
+# named LICENSE that should have accompanied this file.
+#
+# THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+# WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+
+#
+# configuration for generic linux
+#
+CONFIG = linux
+
+#
+# use XF86 vidmode extension (comment out to disable)
+#
+XF86VIDMODE_DEF = -DXF86VIDMODE_EXT
+XF86VIDMODE_LIB = -lXxf86vm
+
+#
+# install locations
+#
+INSTALL_DATA_DIR = /usr/local/share/bzflag/data
+
+#
+# tools
+#
+AR = /usr/bin/ar cru
+CC = /usr/bin/gcc
+CXX = /usr/bin/g++
+CD = cd
+CP = /bin/cp
+LD = /usr/bin/ld
+MKDIR = /bin/mkdir
+NROFF = /usr/bin/nroff
+RM = /bin/rm -f
+RMR = $(RM) -r
+SHELL = /bin/sh
+ECHO = echo
+
+#
+# compiler definitions
+#
+PCDEFS = -D_BSD_SOURCE -DHALF_RATE_AUDIO \
+ $(XF86VIDMODE_DEF)
+PCXXDEFS = -D_BSD_SOURCE -DHALF_RATE_AUDIO \
+ $(XF86VIDMODE_DEF)
+
+#
+# compiler options
+#
+PCOPTS = -Wall -W -ansi $(ACOPTS)
+PCXXOPTS = -Wall -W -fno-exceptions -fno-rtti $(ACXXOPTS)
+COPT = -DNDEBUG -O2 -DAddrLen='socklen_t'
+CXXOPT = -DNDEBUG -O2 -ffast-math -fomit-frame-pointer -fnonnull-objects \
+ -fexpensive-optimizations -DAddrLen='socklen_t'
+CDEBUG = -DDEBUG -g
+CXXDEBUG = -DDEBUG -g
+CWOFF =
+CXXWOFF =
+
+#
+# search paths
+#
+PCINCS = -I/usr/include -I/usr/X11R6/include
+PCXXINCS = -I/usr/include -I/usr/X11R6/include
+
+#
+# linker options
+#
+PLDOPTS = -L/usr/X11R6/lib
+
+#
+# dirt
+#
+PDIRT = *.[eou] a.out core ar.tmp.*
+
+#
+# libraries
+#
+AUDIO_LIBS = \
+ $(NULL)
+
+DISPLAY_LIBS = \
+ $(XF86VIDMODE_LIB) \
+ $(NULL)
+
+GL_LIBS = \
+ -lGLU \
+ -lGL \
+ $(NULL)
+
+IMAGE_LIBS = \
+ $(NULL)
+
+NETWORK_LIBS = \
+ $(NULL)
+
+WINDOW_LIBS = \
+ -lXext \
+ -lX11 \
+ $(NULL)
+
diff --git a/games/bzflag/files/patch-LinuxMedia.cxx b/games/bzflag/files/patch-LinuxMedia.cxx
new file mode 100644
index 000000000000..a4ca66dfa338
--- /dev/null
+++ b/games/bzflag/files/patch-LinuxMedia.cxx
@@ -0,0 +1,27 @@
+--- src/platform/LinuxMedia.cxx.orig Sat Aug 12 00:50:20 2000
++++ src/platform/LinuxMedia.cxx Sat Aug 12 00:53:05 2000
+@@ -13,9 +13,13 @@
+ #include "LinuxMedia.h"
+ #include <math.h>
+ #include <fcntl.h>
++#include <sys/param.h>
++#if !defined(BSD)
+ #include <endian.h>
++#else
++#include <machine/endian.h>
++#endif
+ #include <sys/time.h>
+-#include <sys/types.h>
+ #include <unistd.h>
+ #include <sys/wait.h>
+ #include <signal.h>
+@@ -23,6 +27,9 @@
+ #include <sys/ioctl.h>
+ #include <TimeKeeper.h>
+ #include <errno.h>
++#if defined(BSD)
++#include <string.h>
++#endif
+
+ #ifdef HALF_RATE_AUDIO
+ static const int defaultAudioRate=11025;
diff --git a/games/bzflag/files/patch-common.h b/games/bzflag/files/patch-common.h
new file mode 100644
index 000000000000..109e3ce95fdd
--- /dev/null
+++ b/games/bzflag/files/patch-common.h
@@ -0,0 +1,14 @@
+--- include/common.h.orig Sun Sep 12 21:37:57 1999
++++ include/common.h Sat Aug 12 01:17:34 2000
+@@ -76,8 +76,10 @@
+
+ #if !defined(_WIN32)
+
++#include <sys/param.h>
++#if !defined(BSD)
+ #include <values.h>
+-#include <sys/types.h>
++#endif
+
+ #if defined(__linux) || (defined(__sgi) && !defined(__INTTYPES_MAJOR))
+ typedef u_int16_t uint16_t;
diff --git a/games/bzflag/files/patch-man-Makefile b/games/bzflag/files/patch-man-Makefile
new file mode 100644
index 000000000000..94b5ab6c0192
--- /dev/null
+++ b/games/bzflag/files/patch-man-Makefile
@@ -0,0 +1,25 @@
+--- man/Makefile.orig Sat Aug 12 01:32:07 2000
++++ man/Makefile Sat Aug 12 01:32:18 2000
+@@ -31,19 +31,19 @@
+ sourceform:
+ $(PRINTSRC) | \
+ sed -e 's/\.\([1-8]\)s$$/.\1/' | \
+- xargs -l10 $(MAKE) $(MFLAGS)
++ xargs -n10 $(MAKE) $(MFLAGS)
+
+ # generate packed compiled nroff
+ packed: sourceform
+ $(PRINTSRC) | \
+ sed -e 's/\.[1-8]s$$/\.z/' | \
+- xargs -l10 $(MAKE) $(MFLAGS)
++ xargs -n10 $(MAKE) $(MFLAGS)
+
+ # generate gzipped compiled nroff
+ gzipped: sourceform
+ $(PRINTSRC) | \
+ sed -e 's/\.[1-8]s$$/\.gz/' | \
+- xargs -l10 $(MAKE) $(MFLAGS)
++ xargs -n10 $(MAKE) $(MFLAGS)
+
+ # replace tokens in source to make nroff source
+ .1s.1 .2s.2 .3s.3 .4s.4 .5s.5 .6s.6 .7s.7 .8s.8:
diff --git a/games/bzflag/files/patch-network.h b/games/bzflag/files/patch-network.h
new file mode 100644
index 000000000000..6470541c4590
--- /dev/null
+++ b/games/bzflag/files/patch-network.h
@@ -0,0 +1,11 @@
+--- include/network.h.orig Sat Aug 12 01:02:05 2000
++++ include/network.h Sat Aug 12 01:02:21 2000
+@@ -39,7 +39,7 @@
+ #include <netinet/tcp.h>
+ #include <arpa/inet.h>
+ #include <netdb.h>
+-#if defined(_old_linux_) || (!defined(__linux__) && !defined(sun))
++#if defined(_old_linux_) || (!defined(__linux__) && !defined(sun) && !defined(BSD))
+ #include <bstring.h>
+ #endif
+
diff --git a/games/bzflag/pkg-comment b/games/bzflag/pkg-comment
new file mode 100644
index 000000000000..3817d7d9ed6d
--- /dev/null
+++ b/games/bzflag/pkg-comment
@@ -0,0 +1 @@
+A multiplayer 3D tank battle game
diff --git a/games/bzflag/pkg-descr b/games/bzflag/pkg-descr
new file mode 100644
index 000000000000..ac3b4e949b4e
--- /dev/null
+++ b/games/bzflag/pkg-descr
@@ -0,0 +1,16 @@
+BZFlag is a 3D multi-player tank battle game that allows users to play
+against each other in a networked environment. There are five teams:
+red, green, blue, purple and rogue (rogue tanks are black). Destroying a
+player on another team scores a win, while being destroyed or destroying
+a teammate scores a loss. Rogues have no teammates (not even other
+rogues), so they cannot shoot teammates and they do not have a team
+score.
+
+There are two main styles of play: capture-the-flag and free-for-all. In
+capture-the-flag, each team (except rogues) has a team base and each
+team with at least one player has a team flag. The object is to capture
+an enemy team's flag by bringing it to your team's base. This destroys
+every player on the captured team, subtracts one from that team's score,
+and adds one to your team's score. In free-for-all, there are no team
+flags or team bases. The object is simply to get as high a score as
+possible.
diff --git a/games/bzflag/pkg-plist b/games/bzflag/pkg-plist
new file mode 100644
index 000000000000..a14fe195310b
--- /dev/null
+++ b/games/bzflag/pkg-plist
@@ -0,0 +1,4 @@
+bin/bzflag
+bin/bzfls
+bin/bzfrelay
+bin/bzfs