diff options
author | frueauf <frueauf@pkgsrc.org> | 1998-08-06 21:07:39 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1998-08-06 21:07:39 +0000 |
commit | 2eff19e9c65ea82035e4040a9cdc12d5da052d51 (patch) | |
tree | 764a785e7df19d9e7b8e5da40562096b574a22e8 /games/battalion | |
parent | d66d7fcef5ea61bebf891c7c3360694bbeb3ca4e (diff) | |
download | pkgsrc-2eff19e9c65ea82035e4040a9cdc12d5da052d51.tar.gz |
Initial addition of battalion-1.4, a virtual reality 3D GL game for X11.
Closes pr 5849 by Tim Rightnour.
Diffstat (limited to 'games/battalion')
-rw-r--r-- | games/battalion/Makefile | 43 | ||||
-rw-r--r-- | games/battalion/files/md5 | 2 | ||||
-rw-r--r-- | games/battalion/patches/patch-aa | 45 | ||||
-rw-r--r-- | games/battalion/patches/patch-ab | 33 | ||||
-rw-r--r-- | games/battalion/pkg/COMMENT | 1 | ||||
-rw-r--r-- | games/battalion/pkg/DESCR | 16 | ||||
-rw-r--r-- | games/battalion/pkg/PLIST | 48 |
7 files changed, 188 insertions, 0 deletions
diff --git a/games/battalion/Makefile b/games/battalion/Makefile new file mode 100644 index 00000000000..3ea5a7c585f --- /dev/null +++ b/games/battalion/Makefile @@ -0,0 +1,43 @@ +# $NetBSD: Makefile,v 1.1 1998/08/06 21:07:39 frueauf Exp $ +# + +DISTNAME= battalion +PKGNAME= battalion-1.4 +WRKSRC= ${WRKDIR}/battalionSource +CATEGORIES= games x11 +MASTER_SITES= http://www.evl.uic.edu/aej/ +DISTFILES= battalionSource1.4.tar.Z battalionSUN4.tar.gz + +MAINTAINER= root@garbled.net + +DEPENDS+= Mesa-2.6:../../graphics/Mesa + +EXTRACT_ONLY= battalionSource1.4.tar.Z +USE_X11= yes + +do-install: + ${INSTALL} -c -s -o root -g games -m 2755 ${WRKSRC}/battalion ${PREFIX}/bin + @${EXTRACT_CMD} -xzmf ${DISTDIR}/battalionSUN4.tar.gz -C ${WRKDIR} + ${MKDIR} ${PREFIX}/share/battalion/HELP + ${MKDIR} ${PREFIX}/share/battalion/battalion.data/DATA + ${MKDIR} ${PREFIX}/share/battalion/battalion.data/MUSIC + ${MKDIR} ${PREFIX}/share/battalion/battalion.data/SOUNDS + ${MKDIR} ${PREFIX}/share/battalion/battalion.data/TEXTURES + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/DATA/* $(PREFIX)/share/battalion/battalion.data/DATA + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/MUSIC/* $(PREFIX)/share/battalion/battalion.data/MUSIC + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/SOUNDS/* $(PREFIX)/share/battalion/battalion.data/SOUNDS + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/TEXTURES/* $(PREFIX)/share/battalion/battalion.data/TEXTURES + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/battalion.data/battalion.sho $(PREFIX)/share/battalion/battalion.data + ${INSTALL_MAN} ${WRKDIR}/battalionSUN4/battalion.man ${PREFIX}/man/man6/battalion.6 + ${INSTALL_DATA} ${WRKDIR}/battalionSUN4/HELP/* ${PREFIX}/share/battalion/HELP + ${INSTALL} -c -o root -g games -m 0664 /dev/null ${PREFIX}/share/battalion/battalion_hiscore + +pre-clean: + ${RM} -rf ${WRKDIR}/battalionSUN4 + +.include "../../mk/bsd.pkg.mk" + +.if (${OBJECT_FMT} == "ELF") +RPATH= -Wl,-rpath,${PREFIX}/lib +.endif +MAKE_ENV+= RPATH=${RPATH} diff --git a/games/battalion/files/md5 b/games/battalion/files/md5 new file mode 100644 index 00000000000..6d7e3305aea --- /dev/null +++ b/games/battalion/files/md5 @@ -0,0 +1,2 @@ +MD5 (battalionSource1.4.tar.Z) = 90d915ef289f59714b060b27826049a5 +MD5 (battalionSUN4.tar.gz) = 6efb30da50beadefd50e575b6beae309 diff --git a/games/battalion/patches/patch-aa b/games/battalion/patches/patch-aa new file mode 100644 index 00000000000..79e4f7c9267 --- /dev/null +++ b/games/battalion/patches/patch-aa @@ -0,0 +1,45 @@ +--- Makefile.orig Thu Jan 16 09:31:58 1997 ++++ Makefile Sat Jul 25 09:22:54 1998 +@@ -25,3 +25,3 @@ + # ------------------------------------------------------------ +-CC = CC ++CC = cc + +@@ -39,5 +39,5 @@ + # ------------------------------------------------------------ +-#GLIB = -lMesaGL -lMesaGLU ++GLIB = -lMesaGL -lMesaGLU + # or +-GLIB = -lGL -lGLU ++#GLIB = -lGL -lGLU + +@@ -53,3 +53,3 @@ + # ------------------------------------------------------------ +-OS = -DSGIVERSION ++#OS = -DSGIVERSION + # or +@@ -79,4 +79,4 @@ + # ------------------------------------------------------------ +-AUDIOLIB = -laudio -laudiofile +-AUDIODEF = -DSGIAUDIO ++#AUDIOLIB = -laudio -laudiofile ++#AUDIODEF = -DSGIAUDIO + +@@ -93,4 +93,5 @@ + # ------------------------------------------------------------ +-CFLAGS = -O -I/usr/local/X11/include -I/usr/demo/SOUND/ -I./. +- ++CFLAGS = -O $(DEFS) -I$(PREFIX)/include -I./. ++DATADIR = $(PREFIX)/share/battalion/ ++DEFS = -DDATADIR=\"$(DATADIR)\" + +@@ -99,3 +100,3 @@ + # ------------------------------------------------------------ +-LIBFLAGS = ++LIBFLAGS = $(RPATH) -L$(PREFIX)/lib -lcompat + +@@ -117,2 +118,4 @@ + $(CC) -o $(TARGET) $(OBJ) $(LIBFLAGS) $(GLIB) $(LIBS) $(AUDIOLIB) ++ ++install: + diff --git a/games/battalion/patches/patch-ab b/games/battalion/patches/patch-ab new file mode 100644 index 00000000000..0ebb29a52ee --- /dev/null +++ b/games/battalion/patches/patch-ab @@ -0,0 +1,33 @@ +--- battalion.c.orig Thu Jan 16 09:31:59 1997 ++++ battalion.c Sat Jul 25 08:58:02 1998 +@@ -2876,7 +2876,12 @@ + strcat(dataPath, "/"); +- +- strcpy(fullPath, dataPath); +- strcat(fullPath, "battalion.sho"); +- roadFile = fopen(fullPath, "rb"); + } ++ else { ++ strcat(dataPath, DATADIR); ++ if (dataPath[strlen(dataPath)-1] != '/') ++ strcat(dataPath, "/"); ++ } ++ strcpy(fullPath, dataPath); ++ strcat(fullPath, "battalion.sho"); ++ roadFile = fopen(fullPath, "rb"); ++ + #endif +@@ -2900,6 +2905,6 @@ + { +- roadFile = fopen("./battalion.data/battalion.sho", "rb"); ++ roadFile = fopen(DATADIR "battalion.data/battalion.sho", "rb"); + if (roadFile != NULL) + { +- strcpy(dataPath, "./battalion.data/"); ++ strcpy(dataPath, DATADIR "battalion.data/"); + fclose(roadFile); +@@ -2992,3 +2997,3 @@ + else +- strcpy(scoredataPath, "/usr/tmp"); ++ strcpy(scoredataPath, DATADIR); + diff --git a/games/battalion/pkg/COMMENT b/games/battalion/pkg/COMMENT new file mode 100644 index 00000000000..a9ad9a55e3e --- /dev/null +++ b/games/battalion/pkg/COMMENT @@ -0,0 +1 @@ +a virtual reality 3D GL game for X11. diff --git a/games/battalion/pkg/DESCR b/games/battalion/pkg/DESCR new file mode 100644 index 00000000000..34ba35c3b2d --- /dev/null +++ b/games/battalion/pkg/DESCR @@ -0,0 +1,16 @@ +Battalion was a game written in 1994 on a Silicon Graphics Indy in GL for +the IndiZone contest. This version also ran in the CAVE(tm) as a virtual +reality game at the EVE 4 art show in May 1995. The GL version won 'best +indy software' and is available on the Indizone3 CDROM. It was then +converted to OpenGL (with several enhancements) and modified in late 1996 +to work with the Mesa graphics library. In 1997 it won the Hot Mix 17 game +contest from SGI, and was availableon the Hot Mix 17 CDROM. + +Here is the description of battalion from the Silicon Graphics homepage +in Japan. + + Battalion wa 'kaiju ga bakuhatsu, hakai' wo kuri-kaesu game desu. + Battalion is a game where 'A monster blows up, destroys' repeats. +... pretty much says it all ... + +http://www.evl.uic.edu/aej/AndyBattalion.html diff --git a/games/battalion/pkg/PLIST b/games/battalion/pkg/PLIST new file mode 100644 index 00000000000..a519d6e1eec --- /dev/null +++ b/games/battalion/pkg/PLIST @@ -0,0 +1,48 @@ +@comment $NetBSD: PLIST,v 1.1 1998/08/06 21:07:40 frueauf Exp $ +bin/battalion +man/man6/battalion.6 +share/battalion/battalion_hiscore +share/battalion/HELP/bathelp01.gif +share/battalion/HELP/bathelp02.gif +share/battalion/HELP/bathelp03.gif +share/battalion/HELP/bathelp04.gif +share/battalion/HELP/bathelp05.gif +share/battalion/HELP/bathelp06.gif +share/battalion/HELP/bathelp07.gif +share/battalion/HELP/bathelp08.gif +share/battalion/HELP/bathelp09.gif +share/battalion/HELP/bathelp10.gif +share/battalion/HELP/bathelp11.gif +share/battalion/battalion.data/DATA/road.data +share/battalion/battalion.data/DATA/tank.data +share/battalion/battalion.data/DATA/tree.data +share/battalion/battalion.data/MUSIC/1.au +share/battalion/battalion.data/MUSIC/2.au +share/battalion/battalion.data/MUSIC/3.au +share/battalion/battalion.data/MUSIC/4.au +share/battalion/battalion.data/MUSIC/5.au +share/battalion/battalion.data/MUSIC/d1.au +share/battalion/battalion.data/MUSIC/d2.au +share/battalion/battalion.data/MUSIC/d3.au +share/battalion/battalion.data/MUSIC/d4.au +share/battalion/battalion.data/MUSIC/d5.au +share/battalion/battalion.data/SOUNDS/beam.au +share/battalion/battalion.data/SOUNDS/boom.au +share/battalion/battalion.data/SOUNDS/crash.au +share/battalion/battalion.data/SOUNDS/monsterbeam.au +share/battalion/battalion.data/SOUNDS/rocket.au +share/battalion/battalion.data/SOUNDS/slag.au +share/battalion/battalion.data/SOUNDS/tank.au +share/battalion/battalion.data/SOUNDS/tech.au +share/battalion/battalion.data/TEXTURES/road.tex +share/battalion/battalion.data/TEXTURES/screenleft.tex +share/battalion/battalion.data/TEXTURES/screenright.tex +share/battalion/battalion.data/TEXTURES/treewood.tex +share/battalion/battalion.data/battalion.sho +@dirrm share/battalion/battalion.data/TEXTURES +@dirrm share/battalion/battalion.data/DATA +@dirrm share/battalion/battalion.data/MUSIC +@dirrm share/battalion/battalion.data/SOUNDS +@dirrm share/battalion/HELP +@dirrm share/battalion/battalion.data +@dirrm share/battalion |