summaryrefslogtreecommitdiff
path: root/games/cbzone
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>1998-07-27 00:11:29 +0000
committertron <tron@pkgsrc.org>1998-07-27 00:11:29 +0000
commit82bfac1754031cd2a5d534deddfeb655438fe3f7 (patch)
tree1b3f375a0132eb992a028972a43cb71a7763557f /games/cbzone
parentbe6f4e520464c019ff9de37d016368a4278fd853 (diff)
downloadpkgsrc-82bfac1754031cd2a5d534deddfeb655438fe3f7.tar.gz
Add "cbzone" package by Tim Rightnour:
a simple classic game of 3D tank warfare + fix sound playback + add note about problems with 16BPP displays
Diffstat (limited to 'games/cbzone')
-rw-r--r--games/cbzone/Makefile15
-rw-r--r--games/cbzone/files/md51
-rw-r--r--games/cbzone/patches/patch-aa38
-rw-r--r--games/cbzone/patches/patch-ab11
-rw-r--r--games/cbzone/pkg/COMMENT1
-rw-r--r--games/cbzone/pkg/DESCR15
-rw-r--r--games/cbzone/pkg/MESSAGE1
-rw-r--r--games/cbzone/pkg/PLIST17
8 files changed, 99 insertions, 0 deletions
diff --git a/games/cbzone/Makefile b/games/cbzone/Makefile
new file mode 100644
index 00000000000..b6fc1682502
--- /dev/null
+++ b/games/cbzone/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1 1998/07/27 00:11:29 tron Exp $
+
+DISTNAME= cbzone-sound
+PKGNAME= cbzone-2.0c
+CATEGORIES= games x11
+MASTER_SITES= ftp://ftp.cdrom.com/pub/X11/R5contrib/
+
+MAINTAINER= root@garbled.net
+
+WRKSRC= ${WRKDIR}/cbzone
+
+USE_GMAKE= yes
+USE_IMAKE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/cbzone/files/md5 b/games/cbzone/files/md5
new file mode 100644
index 00000000000..bb13ea57ef6
--- /dev/null
+++ b/games/cbzone/files/md5
@@ -0,0 +1 @@
+MD5 (cbzone-sound.tar.gz) = bc71c2847739fa1bea8d40bcc9d39c5e
diff --git a/games/cbzone/patches/patch-aa b/games/cbzone/patches/patch-aa
new file mode 100644
index 00000000000..8dd318b6971
--- /dev/null
+++ b/games/cbzone/patches/patch-aa
@@ -0,0 +1,38 @@
+--- Imakefile.orig Sun Aug 1 22:45:08 1993
++++ Imakefile Sun Jul 26 05:36:23 1998
+@@ -34,5 +34,5 @@
+ cbzone.motd \
+- cbzone.script \
+- cbzone.highscores \
+- Cbzone.ad
++ cbzone.script \
++ cbzone.highscores \
++ Cbzone.ad
+
+@@ -55,3 +55,3 @@
+ # TANK_BINDIR = $(BINDIR)
+-TANK_BINDIR= /usr/local/games
++TANK_BINDIR= $(PREFIX)/bin
+
+@@ -59,3 +59,3 @@
+ # TANK_LIBDIR = $(LIBDIR)
+-TANK_LIBDIR = /usr/local/games/lib/cbzone
++TANK_LIBDIR = $(PREFIX)/share/cbzone
+
+@@ -63,3 +63,3 @@
+ # TANK_APPDIR = $(XAPPLOADDIR)
+-TANK_APPDIR = $(TANK_LIBDIR)
++TANK_APPDIR = $(XAPPLOADDIR)
+
+@@ -74,3 +74,3 @@
+ AllTarget(cbzone.exec)
+-
++
+ MakeDirectories(install,$(TANK_BINDIR) $(TANK_LIBDIR) $(TANK_APPDIR) $(TANK_SOUNDDIR))
+@@ -99,4 +99,4 @@
+ cbzone.exec: $(OBJS) $(DEPLIBS)
+- RemoveTargetProgram($@)
+- $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
++ RemoveTargetProgram($@)
++ $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS)
+
diff --git a/games/cbzone/patches/patch-ab b/games/cbzone/patches/patch-ab
new file mode 100644
index 00000000000..155efab30a8
--- /dev/null
+++ b/games/cbzone/patches/patch-ab
@@ -0,0 +1,11 @@
+--- cbzone.script.src.orig Sat Jul 31 10:13:56 1993
++++ cbzone.script.src Mon Jul 27 01:51:33 1998
+@@ -16,7 +16,7 @@
+ cbzone.exec -reports -nooutput $* | \
+ {
+ while read msg
+- do play ${msg}.au 2>/dev/null
++ do cat ${msg}.au >/dev/audio
+ done
+ }
+
diff --git a/games/cbzone/pkg/COMMENT b/games/cbzone/pkg/COMMENT
new file mode 100644
index 00000000000..7a8a55700ce
--- /dev/null
+++ b/games/cbzone/pkg/COMMENT
@@ -0,0 +1 @@
+a simple classic game of 3D tank warfare
diff --git a/games/cbzone/pkg/DESCR b/games/cbzone/pkg/DESCR
new file mode 100644
index 00000000000..392b8dcd5f9
--- /dev/null
+++ b/games/cbzone/pkg/DESCR
@@ -0,0 +1,15 @@
+ Cbzone is a version of Battlezone derived from the Fortran
+sources written by Justin S. Revenaugh. This version is more
+flexible in that the number of opponents is user selectable.
+
+ Input to the the game is primarily through the mouse, although
+some keyboard commands are accepted. Mouse left button will
+fire a salvo; mouse right button will switch between low/high
+sensitivity (sensitivity determines how sensitive the joystick is to
+pointer motion). On a three button mouse, the middle button will
+center the joystick and stop your tank. This facility can be done
+ona two button mouse by hitting both buttons at the same time.
+Directional control of the tank is by moving the mouse to
+different portions of the screen. The joystick in the lower right
+hand of the screen will correspond to your tanks current movement
+and rotation.
diff --git a/games/cbzone/pkg/MESSAGE b/games/cbzone/pkg/MESSAGE
new file mode 100644
index 00000000000..8c6472acc36
--- /dev/null
+++ b/games/cbzone/pkg/MESSAGE
@@ -0,0 +1 @@
+This game will not work on a display using 16 bits per pixel.
diff --git a/games/cbzone/pkg/PLIST b/games/cbzone/pkg/PLIST
new file mode 100644
index 00000000000..030efb46a25
--- /dev/null
+++ b/games/cbzone/pkg/PLIST
@@ -0,0 +1,17 @@
+@comment $NetBSD: PLIST,v 1.1 1998/07/27 00:11:30 tron Exp $
+lib/X11/app-defaults/Cbzone
+share/cbzone/sounds/enemy_seen.au
+share/cbzone/sounds/game_begin.au
+share/cbzone/sounds/game_end.au
+share/cbzone/sounds/move_blocked.au
+share/cbzone/sounds/object_explodes.au
+share/cbzone/sounds/salvo_fired.au
+share/cbzone/sounds/user_died.au
+share/cbzone/sounds/user_shoots.au
+share/cbzone/cbzone.help
+share/cbzone/cbzone.motd
+share/cbzone/cbzone.highscores
+bin/cbzone.exec
+bin/cbzone
+@dirrm share/cbzone/sounds
+@dirrm share/cbzone