summaryrefslogtreecommitdiff
path: root/games/xbomb/files
diff options
context:
space:
mode:
Diffstat (limited to 'games/xbomb/files')
-rw-r--r--games/xbomb/files/patch-aa53
-rw-r--r--games/xbomb/files/patch-ab13
2 files changed, 66 insertions, 0 deletions
diff --git a/games/xbomb/files/patch-aa b/games/xbomb/files/patch-aa
new file mode 100644
index 000000000000..805b862dd68d
--- /dev/null
+++ b/games/xbomb/files/patch-aa
@@ -0,0 +1,53 @@
+--- Makefile.orig Sat Jan 20 22:02:46 1996
++++ Makefile Fri Feb 20 10:27:38 1998
+@@ -12,33 +12,27 @@
+ # for conditions under which this file may be redistributed.
+ #
+
+-CC=gcc
+-CFLAGS=-O2
+-
+-INCLUDES=
++#CC=gcc
++CFLAGS+= -I${X11BASE}/include -DX11BASE=\"${X11BASE}\"
+
+ LIB=
+
+-XLIB=-L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11
+-
+-COMPILE=$(CC) -c $(CFLAGS)
++XLIB=-L${X11BASE}/lib -lXaw -lXmu -lXt -lX11 -lcompat
+
+ LINK=$(CC)
+
+ OBJ=xbomb.o xwindow.o hiscore.o
+
+-INSTDIR=/usr/local
++INSTDIR=${PREFIX}
+
+ ########
++all: xbomb
+
+ xbomb : $(OBJ)
+ $(LINK) $(OBJ) -o $@ $(LIB) $(XLIB)
+
+ ########
+
+-%.o : %.c
+- $(COMPILE) $< -o $@ $(INCLUDES)
+-
+ xbomb.o : xbomb.c xbomb.h
+ xwindow.o : xwindow.c xbomb.h icon.h
+ hiscore.o : hiscore.c xbomb.h
+@@ -54,7 +48,7 @@
+ strip xbomb
+ install -d $(INSTDIR)/bin
+ install -d $(INSTDIR)/man/man6
+- install -d $(INSTDIR)/lib/app-defaults
+- install -m 755 xbomb $(INSTDIR)/bin
+- install -m 644 xbomb.6 $(INSTDIR)/man/man6
+- install -m 644 xbomb.ad $(INSTDIR)/lib/app-defaults/XBomb
++ install -d $(INSTDIR)/lib/X11/app-defaults
++ ${BSD_INSTALL_PROGRAM} xbomb $(INSTDIR)/bin
++ ${BSD_INSTALL_MAN} xbomb.6 $(INSTDIR)/man/man6
++ ${BSD_INSTALL_SCRIPT} xbomb.ad $(INSTDIR)/lib/X11/app-defaults/XBomb
diff --git a/games/xbomb/files/patch-ab b/games/xbomb/files/patch-ab
new file mode 100644
index 000000000000..5ea85294a405
--- /dev/null
+++ b/games/xbomb/files/patch-ab
@@ -0,0 +1,13 @@
+--- hiscore.c.orig Fri Jan 16 20:50:39 1998
++++ hiscore.c Fri Feb 20 10:23:20 1998
+@@ -47,7 +47,9 @@
+ nbombs[NLEVELS]; /*+ number of bombs. +*/
+
+ /*+ The names of the high score tables. +*/
+-static char *filenames[NTYPES]={"/var/tmp/xbomb6.hi","/var/tmp/xbomb4.hi","/var/tmp/xbomb3.hi"};
++static char *filenames[NTYPES]={X11BASE"/lib/X11/xbomb/xbomb6.hi",
++ X11BASE"/lib/X11/xbomb/xbomb4.hi",
++ X11BASE"/lib/X11/xbomb/xbomb3.hi"};
+
+ /*+ The names of the positions in the high score tables. +*/
+ static char pos[11][5]={"Top","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","Lost"};