aboutsummaryrefslogtreecommitdiff
path: root/games/tank
diff options
context:
space:
mode:
authorJordan K. Hubbard <jkh@FreeBSD.org>1998-03-14 11:41:26 +0000
committerJordan K. Hubbard <jkh@FreeBSD.org>1998-03-14 11:41:26 +0000
commit37f8f86596594678569f8c8f71fd0bab46b9d46d (patch)
tree9c72ce55ab506e6b1fc8ec64f2533d675812d089 /games/tank
parent36189537e1e36f46f2a9357cbb7a7555510a9699 (diff)
downloadports-37f8f86596594678569f8c8f71fd0bab46b9d46d.tar.gz
ports-37f8f86596594678569f8c8f71fd0bab46b9d46d.zip
Notes
Diffstat (limited to 'games/tank')
-rw-r--r--games/tank/Makefile31
-rw-r--r--games/tank/distinfo1
-rw-r--r--games/tank/files/patch-aa131
-rw-r--r--games/tank/pkg-comment1
-rw-r--r--games/tank/pkg-descr12
-rw-r--r--games/tank/pkg-plist38
6 files changed, 214 insertions, 0 deletions
diff --git a/games/tank/Makefile b/games/tank/Makefile
new file mode 100644
index 000000000000..528063573fdc
--- /dev/null
+++ b/games/tank/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: tank
+# Version required: 0.4a
+# Date created: 4 Mar 1998
+# Whom: Donald Burr <dburr@POBoxes.com>
+#
+# $Id$
+#
+
+DISTNAME= tank-0.4a-src
+PKGNAME= tank-0.4a
+CATEGORIES= games
+MASTER_SITES= http://www.info.polymtl.ca/~coyote/tank/
+
+MAINTAINER= dburr@POBoxes.com
+
+LIB_DEPENDS= MesaGL\\.13\\.:${PORTSDIR}/graphics/Mesa
+
+WRKSRC= ${WRKDIR}/${PKGNAME}
+
+USE_GMAKE= YES
+ALL_TARGET= linux-mesa-elf
+
+# MAN6= xmame.6
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/tank ${PREFIX}/bin
+ ${MKDIR} ${PREFIX}/lib/tank
+ ${INSTALL_DATA} ${WRKSRC}/*.tga ${PREFIX}/lib/tank
+ ${INSTALL_DATA} ${WRKSRC}/*.au ${PREFIX}/lib/tank
+
+.include <bsd.port.mk>
diff --git a/games/tank/distinfo b/games/tank/distinfo
new file mode 100644
index 000000000000..1764c96b39f7
--- /dev/null
+++ b/games/tank/distinfo
@@ -0,0 +1 @@
+MD5 (tank-0.4a-src.tar.gz) = 36c7cc9315826c6ead3b3ad1d721ddac
diff --git a/games/tank/files/patch-aa b/games/tank/files/patch-aa
new file mode 100644
index 000000000000..823138066fc0
--- /dev/null
+++ b/games/tank/files/patch-aa
@@ -0,0 +1,131 @@
+diff -ruN ../../OLD/tank-0.4a/./Makefile ./Makefile
+--- ../../OLD/tank-0.4a/./Makefile Sun Feb 2 09:59:42 1997
++++ ./Makefile Wed Mar 4 04:42:57 1998
+@@ -43,11 +43,11 @@
+ "GLAUXINC = $(GLAUXINC)" linux-elf
+
+ linux-mesa:
+- cd Mesa; $(MAKE) linux
++ # cd Mesa; $(MAKE) linux
+ $(MAKE) -f Makefile.Linux.Mesa linux
+
+ linux-mesa-elf:
+- cd Mesa; $(MAKE) linux-elf
++ # cd Mesa; $(MAKE) linux-elf
+ $(MAKE) -f Makefile.Linux.Mesa linux-elf
+
+ aix-opengl:
+@@ -65,7 +65,7 @@
+ $(MAKE) -f Makefile.Linux clean
+
+ mesa-clean:
+- cd Mesa; $(MAKE) clean
++ # cd Mesa; $(MAKE) clean
+ $(MAKE) -f Makefile.Linux clean
+
+ backup:
+diff -ruN ../../OLD/tank-0.4a/./Makefile.Linux.Mesa ./Makefile.Linux.Mesa
+--- ../../OLD/tank-0.4a/./Makefile.Linux.Mesa Sun Feb 2 09:59:42 1997
++++ ./Makefile.Linux.Mesa Wed Mar 4 04:42:57 1998
+@@ -3,16 +3,16 @@
+
+ .SUFFIXES: .cc .o
+
+-ARCH = -DLINUX -DMESA #-DSOUND
++ARCH = -DLINUX -DUSING_MESA #-DSOUND
+
+ MESA = Mesa
+
+-INCLUDE = -I/usr/include -I$(MESA)/include -I$(MESA)/include/GL
++INCLUDE = -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include/GL
+
+-CFLAGS = $(INCLUDE) $(ARCH) -O2 -m486 -Wall -pipe \
++CFLAGS = $(INCLUDE) $(ARCH) -DSOUND -O3 -m486 -Wall -pipe \
+ -pedantic -funroll-loops -mieee-fp
+
+-LDFLAGS = -L/usr/X11R6/lib -L$(MESA)/lib
++LDFLAGS = -L/usr/X11R6/lib
+
+ TAR = tar
+ COMPRESS = compress -v
+diff -ruN ../../OLD/tank-0.4a/./collisions.c ./collisions.c
+--- ../../OLD/tank-0.4a/./collisions.c Sun Feb 2 09:59:42 1997
++++ ./collisions.c Wed Mar 4 04:42:57 1998
+@@ -10,7 +10,7 @@
+ #include <sys/time.h>
+ #include <math.h>
+
+-#ifdef MESA
++#ifdef USING_MESA
+ #include <glaux.h>
+ #else
+ #include <aux.h>
+diff -ruN ../../OLD/tank-0.4a/./daemon.c ./daemon.c
+--- ../../OLD/tank-0.4a/./daemon.c Sun Feb 2 09:59:42 1997
++++ ./daemon.c Wed Mar 4 04:42:57 1998
+@@ -24,7 +24,7 @@
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+
+-#ifdef MESA
++#ifdef USING_MESA
+ #include <glaux.h>
+ #else
+ #include <aux.h>
+diff -ruN ../../OLD/tank-0.4a/./defines.h ./defines.h
+--- ../../OLD/tank-0.4a/./defines.h Sun Feb 2 09:59:42 1997
++++ ./defines.h Wed Mar 4 04:44:12 1998
+@@ -15,7 +15,7 @@
+ /* Definitions des variables du jeu */
+ /* ------------------------------------------------*/
+
+-#define TANK_HOME "/usr/games/tank-0.4a"
++#define TANK_HOME "/usr/local/lib/tank"
+
+ /* ------------------------------------------------*/
+ /* Definitions du nombre maximum d'objets */
+diff -ruN ../../OLD/tank-0.4a/./lists.c ./lists.c
+--- ../../OLD/tank-0.4a/./lists.c Sun Feb 2 09:59:42 1997
++++ ./lists.c Wed Mar 4 04:42:57 1998
+@@ -13,7 +13,7 @@
+ #include <GL/gl.h>
+ #include <GL/glu.h>
+
+-#ifdef MESA
++#ifdef USING_MESA
+ #include <glaux.h>
+ #else
+ #include <aux.h>
+diff -ruN ../../OLD/tank-0.4a/./operations.c ./operations.c
+--- ../../OLD/tank-0.4a/./operations.c Sun Feb 2 09:59:43 1997
++++ ./operations.c Wed Mar 4 04:42:57 1998
+@@ -13,7 +13,7 @@
+ #include "defines.h"
+ #include "operations.h"
+
+-#ifdef MESA
++#ifdef USING_MESA
+ #include <glaux.h>
+ #else
+ #include <aux.h>
+diff -ruN ../../OLD/tank-0.4a/./tank.c ./tank.c
+--- ../../OLD/tank-0.4a/./tank.c Sun Feb 2 09:59:43 1997
++++ ./tank.c Wed Mar 4 04:44:26 1998
+@@ -22,7 +22,7 @@
+ #include <GL/glx.h>
+ #include <X11/Xutil.h>
+
+-#ifdef MESA
++#ifdef USING_MESA
+ #include <glaux.h>
+ #else
+ #include <aux.h>
+@@ -1383,7 +1383,7 @@
+
+ #ifdef SOUND
+
+- if(system("cat eatthis.au >/dev/audio &") != 0) {
++ if(system("cat /usr/local/lib/tank/eatthis.au >/dev/audio &") != 0) {
+
+ }
+ #endif
diff --git a/games/tank/pkg-comment b/games/tank/pkg-comment
new file mode 100644
index 000000000000..312cba43e3cd
--- /dev/null
+++ b/games/tank/pkg-comment
@@ -0,0 +1 @@
+A 3-D network tank game that uses OpenGL/Mesa.
diff --git a/games/tank/pkg-descr b/games/tank/pkg-descr
new file mode 100644
index 000000000000..ffe8429656db
--- /dev/null
+++ b/games/tank/pkg-descr
@@ -0,0 +1,12 @@
+This is an 3-D network play tank battle game for UNIX/X with Mesa or OpenGL.
+It is similar to the old "Battle Zone" arcade game and the game "Spectre"
+for the Mac. You drive a tank through a 3-D rendered world, dodging and
+fighting all the other tanks. You can have either robotic opponents
+(computer controlled), human opponents across a network, or a combination
+of the two. A variety of features (fog/night vision conditions, heads
+up display, etc.) make game play varied and more interesting.
+
+This program was written as a final project for a computer graphics
+course, and was originally developed under Linux.
+
+[ This port is maintained by Donald Burr <dburr@POBoxes.com>. ]
diff --git a/games/tank/pkg-plist b/games/tank/pkg-plist
new file mode 100644
index 000000000000..0b4759946546
--- /dev/null
+++ b/games/tank/pkg-plist
@@ -0,0 +1,38 @@
+bin/tank
+lib/tank/eatthis.au
+lib/tank/expl01.tga
+lib/tank/expl02.tga
+lib/tank/expl03.tga
+lib/tank/expl04.tga
+lib/tank/expl05.tga
+lib/tank/expl06.tga
+lib/tank/expl07.tga
+lib/tank/expl08.tga
+lib/tank/expl09.tga
+lib/tank/expl10.tga
+lib/tank/expl11.tga
+lib/tank/expl12.tga
+lib/tank/expl13.tga
+lib/tank/expl14.tga
+lib/tank/expl15.tga
+lib/tank/expl16.tga
+lib/tank/expl17.tga
+lib/tank/expl18.tga
+lib/tank/expl19.tga
+lib/tank/expl20.tga
+lib/tank/explos.au
+lib/tank/miss01.tga
+lib/tank/miss02.tga
+lib/tank/miss03.tga
+lib/tank/miss04.tga
+lib/tank/miss05.tga
+lib/tank/miss06.tga
+lib/tank/miss07.tga
+lib/tank/miss08.tga
+lib/tank/miss09.tga
+lib/tank/miss10.tga
+lib/tank/miss11.tga
+lib/tank/miss12.tga
+lib/tank/miss13.tga
+lib/tank/miss14.tga
+@dirrm lib/tank