diff options
author | garbled <garbled> | 1998-09-13 20:55:15 +0000 |
---|---|---|
committer | garbled <garbled> | 1998-09-13 20:55:15 +0000 |
commit | 1e86ce8acbb7276d2f64aaaf312adc94db948d35 (patch) | |
tree | e19b63966d6026442f008f9e5c15e417dd54ca00 /games/galaxa | |
parent | 4ca367f57fd5e3c1948cb74b6579e00f45eefd69 (diff) | |
download | pkgsrc-1e86ce8acbb7276d2f64aaaf312adc94db948d35.tar.gz |
Fix another scorefile..
Diffstat (limited to 'games/galaxa')
-rw-r--r-- | games/galaxa/patches/patch-aa | 22 | ||||
-rw-r--r-- | games/galaxa/patches/patch-ab | 38 | ||||
-rw-r--r-- | games/galaxa/pkg/PLIST | 3 |
3 files changed, 36 insertions, 27 deletions
diff --git a/games/galaxa/patches/patch-aa b/games/galaxa/patches/patch-aa index fb47eaca8a9..c0cf092379a 100644 --- a/games/galaxa/patches/patch-aa +++ b/games/galaxa/patches/patch-aa @@ -1,8 +1,9 @@ -$NetBSD: patch-aa,v 1.3 1998/08/23 07:18:30 garbled Exp $ - +$NetBSD: patch-aa,v 1.4 1998/09/13 20:55:15 garbled Exp $ --- makefile.orig Wed Apr 22 22:41:21 1998 -+++ makefile Fri Jul 24 04:39:58 1998 -@@ -16,6 +16,11 @@ ++++ makefile Sun Sep 13 13:39:27 1998 +@@ -14,16 +14,21 @@ + OPTFLAG= + POSTPROCESS=strip +INSTALLROOT=$(PREFIX) +SOUNDS=$(INSTALLROOT)/share/galaxa/sounds @@ -16,19 +17,24 @@ $NetBSD: patch-aa,v 1.3 1998/08/23 07:18:30 garbled Exp $ +#XLIB=-lX11 +#CFLAGS= -@@ -24,4 +29,4 @@ + # XLIB=-L/usr/openwin/lib -lX11 + # CFLAGS=-I/usr/openwin/include -# XLIB=-L /usr/X11R6/lib -lX11 -lcompat -# CFLAGS=-I/usr/X11/include +XLIB= -Wl,-R$(X11BASE)/lib -L$(X11BASE)/lib -lX11 #-lcompat +CFLAGS= -I$(X11BASE)/include $(DIRS) -@@ -41,3 +46,3 @@ + + OBJECTS=galaxa.o hints.o randnum.o setup.o text.o soundmgr.o +@@ -39,30 +44,24 @@ + + galaxa: $(OBJECTS) - $(CC) $(OBJECTS) $(XLIB) $(MATHLIB) $(CFLAGS) $(OPTFLAG) -o galaxa + $(CC) $(XLIB) $(MATHLIB) $(CFLAGS) $(OPTFLAG) -o $@ $(OBJECTS) chmod 755 galaxa -@@ -45,24 +50,18 @@ + $(POSTPROCESS) galaxa +install: galaxa + install -g games -o bin -m 2755 galaxa $(INSTALLROOT)/bin @@ -37,7 +43,7 @@ $NetBSD: patch-aa,v 1.3 1998/08/23 07:18:30 garbled Exp $ + 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) ++ install -g games -o bin -m 0664 galaxa-highs.dat /var/games -#-- App object--# +#-- Dependencies --# diff --git a/games/galaxa/patches/patch-ab b/games/galaxa/patches/patch-ab index 4efaa850715..c2b9b615e3a 100644 --- a/games/galaxa/patches/patch-ab +++ b/games/galaxa/patches/patch-ab @@ -1,34 +1,38 @@ -$NetBSD: patch-ab,v 1.2 1998/08/07 10:40:40 agc Exp $ - ---- galaxa.c.orig Fri Jul 24 03:06:10 1998 -+++ galaxa.c Fri Jul 24 03:27:53 1998 -@@ -2694,7 +2694,7 @@ +$NetBSD: patch-ab,v 1.3 1998/09/13 20:55:15 garbled Exp $ +--- galaxa.c.orig Wed Apr 22 22:29:14 1998 ++++ galaxa.c Sun Sep 13 13:41:46 1998 +@@ -2693,16 +2693,14 @@ + FILE * fi; 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"); ++ fi = fopen("/var/games/galaxa-highs.dat", "r"); -@@ -2704,3 +2704,3 @@ + if (fi == NULL) + { + /* Set defaults: */ - perror("galaxa-highs.dat"); -+ perror(temp); ++ perror("/var/games/galaxa-highs.dat"); -@@ -2752,4 +2752,6 @@ + for (i = 0; i < 10; i++) + { +@@ -2750,12 +2748,12 @@ + { + FILE * fi; int i; - - fi = fopen("galaxa-highs.dat", "w"); -+ char temp[128]; + -+ sprintf(temp, "%s/galaxa-highs.dat", DATA); -+ fi = fopen(temp, "w"); ++ fi = fopen("/var/games/galaxa-highs.dat", "w"); -@@ -2757,3 +2759,3 @@ + if (fi == NULL) { - perror("galaxa-highs.dat"); -+ perror(temp); ++ perror("/var/games/galaxa-highs.dat"); } + else + { diff --git a/games/galaxa/pkg/PLIST b/games/galaxa/pkg/PLIST index a231de4cfc2..14dea8958c3 100644 --- a/games/galaxa/pkg/PLIST +++ b/games/galaxa/pkg/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.1 1998/07/24 12:17:37 frueauf Exp $ +@comment $NetBSD: PLIST,v 1.2 1998/09/13 20:55:15 garbled Exp $ bin/galaxa share/doc/galaxa/README.txt share/galaxa/sounds/buzz.au @@ -130,7 +130,6 @@ 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 |