aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/battleball/Makefile30
-rw-r--r--games/battleball/distinfo1
-rw-r--r--games/battleball/files/patch-ab22
-rw-r--r--games/battleball/pkg-comment1
-rw-r--r--games/battleball/pkg-descr17
-rw-r--r--games/battleball/pkg-plist4
6 files changed, 75 insertions, 0 deletions
diff --git a/games/battleball/Makefile b/games/battleball/Makefile
new file mode 100644
index 00000000000..414062247e9
--- /dev/null
+++ b/games/battleball/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: battleball
+# Version required: 2.0
+# Date created: 18 December 1998
+# Whom: Andrey Zakhvatov
+#
+# $Id$
+#
+
+DISTNAME= battleball.20.src
+PKGNAME= battleball-2.0
+CATEGORIES= games
+MASTER_SITES= http://www.cs.utexas.edu/users/pahardin/
+
+MAINTAINER= andy@icc.surw.chel.su
+
+USE_IMAKE= yes
+WRKSRC= ${WRKDIR}/bb-2.0
+
+do-install:
+ @ ${INSTALL_PROGRAM} ${WRKSRC}/battleball ${PREFIX}/bin
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @ ${MKDIR} ${PREFIX}/share/doc/battleball
+.for file in CHANGELOG README
+ @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/battleball
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/games/battleball/distinfo b/games/battleball/distinfo
new file mode 100644
index 00000000000..0f1be7d4c4d
--- /dev/null
+++ b/games/battleball/distinfo
@@ -0,0 +1 @@
+MD5 (battleball.20.src.tar.gz) = fd23bc6529d04608e21cb8bfb1b04d73
diff --git a/games/battleball/files/patch-ab b/games/battleball/files/patch-ab
new file mode 100644
index 00000000000..e6108864bd1
--- /dev/null
+++ b/games/battleball/files/patch-ab
@@ -0,0 +1,22 @@
+--- bb/main.C Thu Oct 9 16:03:25 1997
++++ /home/andy/tmp/wrk/bb/main.C Wed Dec 16 23:34:59 1998
+@@ -16,6 +16,9 @@
+ #include <stdio.h> // to get sprintf()
+ #include <string.h> // to get strncpy()
+ #include <time.h> // to get time(time_t *)
++#ifdef __FreeBSD__
++#include <floatingpoint.h>
++#endif
+ #include "bb.h"
+ #include "player.h"
+
+@@ -818,6 +821,9 @@
+ // A long and complicated main() function!
+
+ main (int argc, char *argv[]) {
++#ifdef __FreeBSD__
++ fpsetmask(0);
++#endif
+ battleBall bb(argc,argv);
+ bb.Play();
+ }
diff --git a/games/battleball/pkg-comment b/games/battleball/pkg-comment
new file mode 100644
index 00000000000..cbd43b926b2
--- /dev/null
+++ b/games/battleball/pkg-comment
@@ -0,0 +1 @@
+3D single/multiplayer military soccer game for X Window System.
diff --git a/games/battleball/pkg-descr b/games/battleball/pkg-descr
new file mode 100644
index 00000000000..41e9c65be97
--- /dev/null
+++ b/games/battleball/pkg-descr
@@ -0,0 +1,17 @@
+BattleBall is essentially the game of soccer, played with military
+vehicles rather than with people. Each player drives a tank or flies
+a helicopter, and tries to move the ball down the playfield to the
+other team's goal. In BattleBall, the teams' "goals" are their
+headquarters buildings, positioned at the ends of the playfield.
+Hitting another team's headquarters building with the ball scores a
+point, knocking the building over in the process. Yes, realism was
+my ultimate goal in this game.
+
+Players are organized into teams. Up to six teams can play at once, and
+teams may have any combination of human and computer players. All teams
+compete on the playfield simultaneously. To reduce disorientation and
+chaos, players' vehicles are painted with their team's colors, and
+headquarters buildings are marked with their team's insignia.
+
+
+http://www.cs.utexas.edu/users/pahardin/bb.html
diff --git a/games/battleball/pkg-plist b/games/battleball/pkg-plist
new file mode 100644
index 00000000000..d6efb5917d6
--- /dev/null
+++ b/games/battleball/pkg-plist
@@ -0,0 +1,4 @@
+bin/battleball
+share/doc/battleball/CHANGELOG
+share/doc/battleball/README
+@dirrm share/doc/battleball