summaryrefslogtreecommitdiff
path: root/games/galaxa/patches
diff options
context:
space:
mode:
authorfrueauf <frueauf>1998-07-24 12:17:36 +0000
committerfrueauf <frueauf>1998-07-24 12:17:36 +0000
commit4f429a346d5c026a5b4b16ee1d77db58b6737592 (patch)
tree36011a7ae482cbf45fe6052599494870082d3f4f /games/galaxa/patches
parent315aff43f1d5594f2e16da8d1df47218c835a1df (diff)
downloadpkgsrc-4f429a346d5c026a5b4b16ee1d77db58b6737592.tar.gz
Initial addition of galaxa-0.1, a space game based loosely on "Galaga".
Closes pr 5827 by Tim Rightnour.
Diffstat (limited to 'games/galaxa/patches')
-rw-r--r--games/galaxa/patches/patch-aa63
-rw-r--r--games/galaxa/patches/patch-ab32
-rw-r--r--games/galaxa/patches/patch-ac7
-rw-r--r--games/galaxa/patches/patch-ad13
-rw-r--r--games/galaxa/patches/patch-ae23
-rw-r--r--games/galaxa/patches/patch-af24
6 files changed, 162 insertions, 0 deletions
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