diff options
-rw-r--r-- | games/galaxa/Makefile | 22 | ||||
-rw-r--r-- | games/galaxa/files/md5 | 1 | ||||
-rw-r--r-- | games/galaxa/patches/patch-aa | 63 | ||||
-rw-r--r-- | games/galaxa/patches/patch-ab | 32 | ||||
-rw-r--r-- | games/galaxa/patches/patch-ac | 7 | ||||
-rw-r--r-- | games/galaxa/patches/patch-ad | 13 | ||||
-rw-r--r-- | games/galaxa/patches/patch-ae | 23 | ||||
-rw-r--r-- | games/galaxa/patches/patch-af | 24 | ||||
-rw-r--r-- | games/galaxa/pkg/COMMENT | 1 | ||||
-rw-r--r-- | games/galaxa/pkg/DESCR | 15 | ||||
-rw-r--r-- | games/galaxa/pkg/PLIST | 137 |
11 files changed, 338 insertions, 0 deletions
diff --git a/games/galaxa/Makefile b/games/galaxa/Makefile new file mode 100644 index 00000000000..d3e14c76ae5 --- /dev/null +++ b/games/galaxa/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 1998/07/24 12:17:36 frueauf Exp $ +# + +DISTNAME= galaxa.0.1 +PKGNAME= galaxa-0.1 +CATEGORIES= games x11 +MASTER_SITES= ftp://ftp.sonic.net/pub/users/nbs/unix/x/galaxa/ + +MAINTAINER= root@garbled.net + +WRKSRC= ${WRKDIR}/galaxa + +USE_X11= yes + +post-patch: + @${CP} ${WRKSRC}/makefile ${WRKSRC}/Makefile + +pre-install: + ${MKDIR} ${PREFIX}/share/doc/galaxa + ${CP} ${WRKSRC}/README.txt ${PREFIX}/share/doc/galaxa + +.include "../../mk/bsd.pkg.mk" diff --git a/games/galaxa/files/md5 b/games/galaxa/files/md5 new file mode 100644 index 00000000000..12543bf8722 --- /dev/null +++ b/games/galaxa/files/md5 @@ -0,0 +1 @@ +MD5 (galaxa.0.1.tar.gz) = 8a95e1fea7a2aec05bb25d9b9c979f20 diff --git a/games/galaxa/patches/patch-aa b/games/galaxa/patches/patch-aa new file mode 100644 index 00000000000..2b426075a06 --- /dev/null +++ b/games/galaxa/patches/patch-aa @@ -0,0 +1,63 @@ +--- makefile.orig Wed Apr 22 22:41:21 1998 ++++ makefile Fri Jul 24 04:39:58 1998 +@@ -16,6 +16,11 @@ + POSTPROCESS=strip ++INSTALLROOT=$(PREFIX) ++SOUNDS=$(INSTALLROOT)/share/galaxa/sounds ++IMAGES=$(INSTALLROOT)/share/galaxa/images ++DATA=$(INSTALLROOT)/share/galaxa + ++DIRS= -DSOUNDS=\"$(SOUNDS)\" -DIMAGES=\"$(IMAGES)\" -DDATA=\"$(DATA)\" + +-XLIB=-lX11 +-CFLAGS= ++#XLIB=-lX11 ++#CFLAGS= + +@@ -24,4 +29,4 @@ + +-# XLIB=-L /usr/X11R6/lib -lX11 -lcompat +-# CFLAGS=-I/usr/X11/include ++XLIB= -R$(INSTALLROOT)/lib -L$(INSTALLROOT)/lib -lX11 #-lcompat ++CFLAGS= -I$(INSTALLROOT)/include $(DIRS) + +@@ -41,3 +46,3 @@ + galaxa: $(OBJECTS) +- $(CC) $(OBJECTS) $(XLIB) $(MATHLIB) $(CFLAGS) $(OPTFLAG) -o galaxa ++ $(CC) $(XLIB) $(MATHLIB) $(CFLAGS) $(OPTFLAG) -o $@ $(OBJECTS) + chmod 755 galaxa +@@ -45,24 +50,18 @@ + ++install: galaxa ++ install -g games -o bin -m 2755 galaxa $(INSTALLROOT)/bin ++ mkdir -p $(DATA) ++ mkdir -p $(SOUNDS) ++ mkdir -p $(IMAGES) ++ install -g bin -o bin -m 0644 sounds/* $(SOUNDS) ++ install -g bin -o bin -m 0644 images/* $(IMAGES) ++ install -g games -o bin -m 0664 galaxa-highs.dat $(DATA) + +-#-- App object--# ++#-- Dependencies --# + + galaxa.o: galaxa.c hints.h randnum.h setup.h text.h soundmgr.h +- $(CC) galaxa.c -c +- +- +-#-- Lib objects--# +- + hints.o: hints.c hints.h +- $(CC) hints.c -c +- +-text.o: text.c text.h +- $(CC) text.c -c +- ++text.o: text.c text.h + soundmgr.o: soundmgr.c soundmgr.h +- $(CC) soundmgr.c -c +- + randnum.o: randnum.c randnum.h +- $(CC) randnum.c -c +- + setup.o: setup.c setup.h hints.h text.h soundmgr.h randnum.h +- $(CC) setup.c -c diff --git a/games/galaxa/patches/patch-ab b/games/galaxa/patches/patch-ab new file mode 100644 index 00000000000..54594f2b268 --- /dev/null +++ b/games/galaxa/patches/patch-ab @@ -0,0 +1,32 @@ +--- galaxa.c.orig Fri Jul 24 03:06:10 1998 ++++ galaxa.c Fri Jul 24 03:27:53 1998 +@@ -2694,7 +2694,7 @@ + int i, z; +- ++ char temp[128]; + + /* Open file: */ +- +- fi = fopen("galaxa-highs.dat", "r"); ++ sprintf(temp, "%s/galaxa-highs.dat", DATA); ++ fi = fopen(temp, "r"); + +@@ -2704,3 +2704,3 @@ + +- perror("galaxa-highs.dat"); ++ perror(temp); + +@@ -2752,4 +2752,6 @@ + int i; +- +- fi = fopen("galaxa-highs.dat", "w"); ++ char temp[128]; ++ ++ sprintf(temp, "%s/galaxa-highs.dat", DATA); ++ fi = fopen(temp, "w"); + +@@ -2757,3 +2759,3 @@ + { +- perror("galaxa-highs.dat"); ++ perror(temp); + } diff --git a/games/galaxa/patches/patch-ac b/games/galaxa/patches/patch-ac new file mode 100644 index 00000000000..f2091e051dc --- /dev/null +++ b/games/galaxa/patches/patch-ac @@ -0,0 +1,7 @@ +--- setup.c.orig Fri Jul 24 03:31:06 1998 ++++ setup.c Fri Jul 24 03:31:24 1998 +@@ -485,3 +485,3 @@ + +- sprintf(file, "images/%s.ppm", object_names[i]); ++ sprintf(file, "%s/%s.ppm",IMAGES, object_names[i]); + diff --git a/games/galaxa/patches/patch-ad b/games/galaxa/patches/patch-ad new file mode 100644 index 00000000000..c6a4f9fcfa5 --- /dev/null +++ b/games/galaxa/patches/patch-ad @@ -0,0 +1,13 @@ +--- setup.h.orig Fri Jul 24 03:35:59 1998 ++++ setup.h Fri Jul 24 03:51:24 1998 +@@ -100,6 +100,6 @@ + static char * sounds[] = { +- "sounds/intro.au", "sounds/tractorbeam.au", "sounds/capture.au", +- "sounds/shot.au", "sounds/kill.au", "sounds/buzz.au", +- "sounds/flash.au", "sounds/nextlevel.au", "sounds/hurt.au", +- "sounds/fireworks.au", "sounds/welcome.au" ++ "intro.au", "tractorbeam.au", "capture.au", ++ "shot.au", "kill.au", "buzz.au", ++ "flash.au", "nextlevel.au", "hurt.au", ++ "fireworks.au", "welcome.au" + }; diff --git a/games/galaxa/patches/patch-ae b/games/galaxa/patches/patch-ae new file mode 100644 index 00000000000..7478baad16a --- /dev/null +++ b/games/galaxa/patches/patch-ae @@ -0,0 +1,23 @@ +--- soundmgr.c.orig Fri Jul 24 03:28:18 1998 ++++ soundmgr.c Fri Jul 24 03:53:56 1998 +@@ -38,3 +38,3 @@ + struct stat sbuf; +- ++ char temp[256]; + +@@ -86,3 +86,4 @@ + { +- stat(files[i], &sbuf); ++ sprintf(temp,"%s/%s",SOUNDS,files[i]); ++ stat(temp, &sbuf); + au_file_data[i] = malloc(sbuf.st_size); +@@ -90,3 +91,3 @@ + +- fi = fopen(files[i], "r"); ++ fi = fopen(temp, "r"); + +@@ -108,3 +109,3 @@ + { +- perror(file); ++ perror(temp); + exit(0); diff --git a/games/galaxa/patches/patch-af b/games/galaxa/patches/patch-af new file mode 100644 index 00000000000..f2b74cdb621 --- /dev/null +++ b/games/galaxa/patches/patch-af @@ -0,0 +1,24 @@ +--- /dev/null Thu Jul 23 15:22:00 1998 ++++ galaxa-highs.dat Fri Jul 24 04:19:30 1998 +@@ -0,0 +1,21 @@ ++10000 GAL ++9250 GAL ++8500 BJK ++7750 GAL ++7000 NBS ++6250 NBS ++5500 BJK ++4750 BJK ++4000 NBS ++3250 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++5 BJK ++50.000000 FJI diff --git a/games/galaxa/pkg/COMMENT b/games/galaxa/pkg/COMMENT new file mode 100644 index 00000000000..403fd6b7d63 --- /dev/null +++ b/games/galaxa/pkg/COMMENT @@ -0,0 +1 @@ +a space game based loosely on "Galaga". diff --git a/games/galaxa/pkg/DESCR b/games/galaxa/pkg/DESCR new file mode 100644 index 00000000000..0869872b66c --- /dev/null +++ b/games/galaxa/pkg/DESCR @@ -0,0 +1,15 @@ +ABOUT GALAXA +------------ +GalaXa is Freeware. If you like it, please send your comments, a donation, +a postcard, anything! See the "CONTACT" section at the end of this document +to find out how to reach me. + +GalaXa is a space game based loosely on "Galaga," an arcade classic +released by NAMCO in the 1981. GalaXa is an X-Window game written in +C in my spare time. + +by Bill Kendrick +New Breed Software +(c) 1998 +kendrick@zippy.sonoma.edu +http://zippy.sonoma.edu/kendrick/ diff --git a/games/galaxa/pkg/PLIST b/games/galaxa/pkg/PLIST new file mode 100644 index 00000000000..a231de4cfc2 --- /dev/null +++ b/games/galaxa/pkg/PLIST @@ -0,0 +1,137 @@ +@comment $NetBSD: PLIST,v 1.1 1998/07/24 12:17:37 frueauf Exp $ +bin/galaxa +share/doc/galaxa/README.txt +share/galaxa/sounds/buzz.au +share/galaxa/sounds/capture.au +share/galaxa/sounds/fireworks.au +share/galaxa/sounds/flash.au +share/galaxa/sounds/hurt.au +share/galaxa/sounds/intro.au +share/galaxa/sounds/kill.au +share/galaxa/sounds/nextlevel.au +share/galaxa/sounds/shot.au +share/galaxa/sounds/tractorbeam.au +share/galaxa/sounds/welcome.au +share/galaxa/images/0.ppm +share/galaxa/images/1.ppm +share/galaxa/images/2.ppm +share/galaxa/images/3.ppm +share/galaxa/images/4.ppm +share/galaxa/images/5.ppm +share/galaxa/images/6.ppm +share/galaxa/images/7.ppm +share/galaxa/images/8.ppm +share/galaxa/images/9.ppm +share/galaxa/images/alien_0_0.ppm +share/galaxa/images/alien_0_0b.ppm +share/galaxa/images/alien_0_1.ppm +share/galaxa/images/alien_0_2.ppm +share/galaxa/images/alien_0_3.ppm +share/galaxa/images/alien_0_4.ppm +share/galaxa/images/alien_0_5.ppm +share/galaxa/images/alien_0_6.ppm +share/galaxa/images/alien_0_7.ppm +share/galaxa/images/alien_1_0.ppm +share/galaxa/images/alien_1_0b.ppm +share/galaxa/images/alien_1_1.ppm +share/galaxa/images/alien_1_2.ppm +share/galaxa/images/convert +share/galaxa/images/alien_1_3.ppm +share/galaxa/images/alien_1_4.ppm +share/galaxa/images/alien_1_5.ppm +share/galaxa/images/alien_1_6.ppm +share/galaxa/images/alien_1_7.ppm +share/galaxa/images/alien_2_0.ppm +share/galaxa/images/alien_2_0b.ppm +share/galaxa/images/alien_2_1.ppm +share/galaxa/images/alien_2_2.ppm +share/galaxa/images/alien_2_3.ppm +share/galaxa/images/alien_2_4.ppm +share/galaxa/images/alien_2_5.ppm +share/galaxa/images/alien_2_6.ppm +share/galaxa/images/alien_2_7.ppm +share/galaxa/images/alien_3_0.ppm +share/galaxa/images/alien_3_0b.ppm +share/galaxa/images/alien_3_1.ppm +share/galaxa/images/alien_3_2.ppm +share/galaxa/images/alien_3_3.ppm +share/galaxa/images/alien_3_4.ppm +share/galaxa/images/alien_3_5.ppm +share/galaxa/images/alien_3_6.ppm +share/galaxa/images/alien_3_7.ppm +share/galaxa/images/alien_4_0.ppm +share/galaxa/images/alien_4_0b.ppm +share/galaxa/images/alien_4_1.ppm +share/galaxa/images/alien_4_2.ppm +share/galaxa/images/alien_4_3.ppm +share/galaxa/images/alien_4_4.ppm +share/galaxa/images/alien_4_5.ppm +share/galaxa/images/alien_4_6.ppm +share/galaxa/images/alien_4_7.ppm +share/galaxa/images/alien_5_0.ppm +share/galaxa/images/alien_5_0b.ppm +share/galaxa/images/alien_5_1.ppm +share/galaxa/images/alien_5_2.ppm +share/galaxa/images/alien_5_3.ppm +share/galaxa/images/alien_5_4.ppm +share/galaxa/images/alien_5_5.ppm +share/galaxa/images/alien_5_6.ppm +share/galaxa/images/alien_5_7.ppm +share/galaxa/images/alienbullet.ppm +share/galaxa/images/asteroid_a0.ppm +share/galaxa/images/asteroid_a1.ppm +share/galaxa/images/asteroid_a2.ppm +share/galaxa/images/asteroid_a3.ppm +share/galaxa/images/asteroid_a4.ppm +share/galaxa/images/asteroid_b0.ppm +share/galaxa/images/asteroid_b1.ppm +share/galaxa/images/asteroid_b2.ppm +share/galaxa/images/asteroid_b3.ppm +share/galaxa/images/asteroid_b4.ppm +share/galaxa/images/bonus.ppm +share/galaxa/images/bullet.ppm +share/galaxa/images/captured.ppm +share/galaxa/images/credits.ppm +share/galaxa/images/explode0.ppm +share/galaxa/images/explode1.ppm +share/galaxa/images/explode2.ppm +share/galaxa/images/explode3.ppm +share/galaxa/images/explode4.ppm +share/galaxa/images/extra_life.ppm +share/galaxa/images/fighter.ppm +share/galaxa/images/freed.ppm +share/galaxa/images/galaxa.ppm +share/galaxa/images/game_over.ppm +share/galaxa/images/giant0.ppm +share/galaxa/images/giant1.ppm +share/galaxa/images/level.ppm +share/galaxa/images/level_1.ppm +share/galaxa/images/level_10.ppm +share/galaxa/images/level_5.ppm +share/galaxa/images/paused.ppm +share/galaxa/images/planet0.ppm +share/galaxa/images/planet1.ppm +share/galaxa/images/planet2.ppm +share/galaxa/images/planet3.ppm +share/galaxa/images/ship_0_0.ppm +share/galaxa/images/ship_0_1.ppm +share/galaxa/images/ship_0_2.ppm +share/galaxa/images/ship_0_3.ppm +share/galaxa/images/ship_0_4.ppm +share/galaxa/images/ship_0_5.ppm +share/galaxa/images/ship_0_6.ppm +share/galaxa/images/ship_0_7.ppm +share/galaxa/images/ship_1_0.ppm +share/galaxa/images/ship_1_1.ppm +share/galaxa/images/ship_1_2.ppm +share/galaxa/images/ship_1_3.ppm +share/galaxa/images/ship_1_4.ppm +share/galaxa/images/ship_1_5.ppm +share/galaxa/images/ship_1_6.ppm +share/galaxa/images/ship_1_7.ppm +share/galaxa/images/tractorbeam.ppm +share/galaxa/galaxa-highs.dat +@dirrm share/doc/galaxa +@dirrm share/galaxa/sounds +@dirrm share/galaxa/images +@dirrm share/galaxa |