summaryrefslogtreecommitdiff
path: root/games/bzflag/files
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/bzflag/files
parentNo need to remove lib/X11/config, it's a standard directory. (diff)
Add bzflag, a multiplayer 3D tank battle game.
Notes
Notes: svn path=/head/; revision=31546
Diffstat (limited to 'games/bzflag/files')
-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
5 files changed, 183 insertions, 0 deletions
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
+