summaryrefslogtreecommitdiff
path: root/games/xnibbles/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2008-09-21 08:17:40 +0000
committerdholland <dholland@pkgsrc.org>2008-09-21 08:17:40 +0000
commitda03056b5f29da65322c1c3c1bcff36340b58ac6 (patch)
tree0af2e37821ec3e63df8d5b346835fe6eb142aefa /games/xnibbles/patches
parent555af005f41ab79ad361e3112e8ead2f1f101bc9 (diff)
downloadpkgsrc-da03056b5f29da65322c1c3c1bcff36340b58ac6.tar.gz
Patch this to not need -fwritable-strings, which is no longer
supported in gcc4. While here, fix a glitch in the man page and add destdir support. PKGREVISION++.
Diffstat (limited to 'games/xnibbles/patches')
-rw-r--r--games/xnibbles/patches/patch-aa30
-rw-r--r--games/xnibbles/patches/patch-ac19
-rw-r--r--games/xnibbles/patches/patch-ad216
-rw-r--r--games/xnibbles/patches/patch-ae21
-rw-r--r--games/xnibbles/patches/patch-af17
5 files changed, 289 insertions, 14 deletions
diff --git a/games/xnibbles/patches/patch-aa b/games/xnibbles/patches/patch-aa
index c3d19c89bf0..ed697688b65 100644
--- a/games/xnibbles/patches/patch-aa
+++ b/games/xnibbles/patches/patch-aa
@@ -1,7 +1,7 @@
-$NetBSD: patch-aa,v 1.5 2006/08/29 20:03:24 rillig Exp $
+$NetBSD: patch-aa,v 1.6 2008/09/21 08:17:40 dholland Exp $
---- Makefile.orig 1998-03-05 14:06:19.000000000 -0800
-+++ Makefile 2004-03-09 15:02:02.000000000 -0800
+--- Makefile.orig 1998-03-05 17:06:19.000000000 -0500
++++ Makefile 2008-09-21 02:02:55.000000000 -0400
@@ -21,14 +21,15 @@
### GENERAL OPTIONS ###
@@ -14,7 +14,7 @@ $NetBSD: patch-aa,v 1.5 2006/08/29 20:03:24 rillig Exp $
- DATADIR = /usr/local/games/xnibbles
+ DATADIR=$(PREFIX)/share/xnibbles
+ CPPFLAGS+=-DDATADIR=\"$(DATADIR)\" $(SDEV)
-+ CFLAGS+=-fwritable-strings
++ #CFLAGS+=-fwritable-strings
# Prefix to find bin and man directories for installation
- PREFIX = /usr/local
@@ -43,7 +43,7 @@ $NetBSD: patch-aa,v 1.5 2006/08/29 20:03:24 rillig Exp $
xnleditor: xnleditor/level.o xnleditor/newWalls.o xnleditor/sideBar.o xnleditor/walls.o xnleditor/xnleditor.o xnleditor/xpms.o xnleditor/numericDisplay.o
$(CC) $(CFLAGS) $(LDFLAGS) \
-@@ -115,19 +116,14 @@ tar: pristine
+@@ -115,20 +116,15 @@ tar: pristine
(cd ..; tar -cvzf xnibbles.tgz xnibbles/ ; chmod 644 xnibbles.tgz)
install:
@@ -60,14 +60,16 @@ $NetBSD: patch-aa,v 1.5 2006/08/29 20:03:24 rillig Exp $
- $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnibbles $(PREFIX)/bin
- $(INSTALL) -g $(GROUP) -m 755 -o $(USER) xnleditor/xnleditor $(PREFIX)/bin
- $(INSTALL) -g $(GROUP) -m 644 -o $(USER) xnibbles.6 $(PREFIX)/man/man6
-+ $(BSD_INSTALL_DATA_DIR) $(DATADIR)/levels
-+ $(BSD_INSTALL_DATA_DIR) $(DATADIR)/sounds
-+ $(BSD_INSTALL_DATA) levels/*.xnl $(DATADIR)/levels
-+ $(BSD_INSTALL_DATA) levels/README $(DATADIR)/levels
-+ $(BSD_INSTALL_DATA) sounds/*.ub $(DATADIR)/sounds
-+ $(BSD_INSTALL_PROGRAM) xnibbles $(PREFIX)/bin
-+ $(BSD_INSTALL_PROGRAM) xnleditor/xnleditor $(PREFIX)/bin
-+ $(BSD_INSTALL_MAN) xnibbles.6 $(PREFIX)/$(PKGMANDIR)/man6
- ./make-LEVELS $(DATADIR) OOGA
+- ./make-LEVELS $(DATADIR) OOGA
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(DATADIR)/levels
++ $(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(DATADIR)/sounds
++ $(BSD_INSTALL_DATA) levels/*.xnl $(DESTDIR)$(DATADIR)/levels
++ $(BSD_INSTALL_DATA) levels/README $(DESTDIR)$(DATADIR)/levels
++ $(BSD_INSTALL_DATA) sounds/*.ub $(DESTDIR)$(DATADIR)/sounds
++ $(BSD_INSTALL_PROGRAM) xnibbles $(DESTDIR)$(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) xnleditor/xnleditor $(DESTDIR)$(PREFIX)/bin
++ $(BSD_INSTALL_MAN) xnibbles.6 $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man6
++ ./make-LEVELS $(DESTDIR)$(DATADIR) $(DATADIR) OOGA
bodyPart.o: common.h bodyPart.h
+ boni.o: common.h boni.h
diff --git a/games/xnibbles/patches/patch-ac b/games/xnibbles/patches/patch-ac
new file mode 100644
index 00000000000..79b25fe4f16
--- /dev/null
+++ b/games/xnibbles/patches/patch-ac
@@ -0,0 +1,19 @@
+$NetBSD: patch-ac,v 1.1 2008/09/21 08:17:40 dholland Exp $
+
+--- make-LEVELS~ 1998-02-23 13:37:57.000000000 -0500
++++ make-LEVELS 2008-09-21 02:04:01.000000000 -0400
+@@ -1,6 +1,6 @@
+ #!/bin/sh
+
+-if [ $2"X" != "OOGAX" ]; then
++if [ $3"X" != "OOGAX" ]; then
+ echo "You shouldn't run this script yourself! Let the Makefile do it!"
+ exit 1
+ fi
+@@ -9,5 +9,5 @@ cd levels
+ rm -f $1"/levels/LEVELS"
+ touch $1"/levels/LEVELS"
+ for i in level???.xnl ; do
+- echo $1"/levels/"$i >> $1"/levels/LEVELS"
++ echo $2"/levels/"$i >> $1"/levels/LEVELS"
+ done
diff --git a/games/xnibbles/patches/patch-ad b/games/xnibbles/patches/patch-ad
new file mode 100644
index 00000000000..d16b14e37fc
--- /dev/null
+++ b/games/xnibbles/patches/patch-ad
@@ -0,0 +1,216 @@
+$NetBSD: patch-ad,v 1.1 2008/09/21 08:17:40 dholland Exp $
+
+--- statusBar.c.orig 1998-03-02 13:22:25.000000000 -0500
++++ statusBar.c 2008-09-21 02:17:18.000000000 -0400
+@@ -52,159 +52,159 @@ statusBar::statusBar(char theName[], int
+ theName[foo]=tolower(theName[foo]);
+ switch (theName[foo]) {
+ case 'a':
+- strcpy (a_xpm[2],colors[6*which+2]);
++ a_xpm[2] = strdup(colors[6*which+2]);
+ a_xpm[2][0]='a';
+- strcpy (a_xpm[3],colors[6*which+5]);
++ a_xpm[3] = colors[6*which+5];
+ makePixmap(a_xpm, &letters[foo]);
+ break;
+ case 'b':
+- strcpy (b_xpm[2],colors[6*which+2]);
++ b_xpm[2] = strdup(colors[6*which+2]);
+ b_xpm[2][0]='a';
+- strcpy (b_xpm[3],colors[6*which+5]);
++ b_xpm[3] = colors[6*which+5];
+ makePixmap(b_xpm, &letters[foo]);
+ break;
+ case 'c':
+- strcpy (c_xpm[2],colors[6*which+2]);
++ c_xpm[2] = strdup(colors[6*which+2]);
+ c_xpm[2][0]='a';
+- strcpy (c_xpm[3],colors[6*which+5]);
++ c_xpm[3] = colors[6*which+5];
+ makePixmap(c_xpm, &letters[foo]);
+ break;
+ case 'd':
+- strcpy (d_xpm[2],colors[6*which+2]);
++ d_xpm[2] = strdup(colors[6*which+2]);
+ d_xpm[2][0]='a';
+- strcpy (d_xpm[3],colors[6*which+5]);
++ d_xpm[3] = colors[6*which+5];
+ makePixmap(d_xpm, &letters[foo]);
+ break;
+ case 'e':
+- strcpy (e_xpm[2],colors[6*which+2]);
++ e_xpm[2] = strdup(colors[6*which+2]);
+ e_xpm[2][0]='a';
+- strcpy (e_xpm[3],colors[6*which+5]);
++ e_xpm[3] = colors[6*which+5];
+ makePixmap(e_xpm, &letters[foo]);
+ break;
+ case 'f':
+- strcpy (f_xpm[2],colors[6*which+2]);
++ f_xpm[2] = strdup(colors[6*which+2]);
+ f_xpm[2][0]='a';
+- strcpy (f_xpm[3],colors[6*which+5]);
++ f_xpm[3] = colors[6*which+5];
+ makePixmap(f_xpm, &letters[foo]);
+ break;
+ case 'g':
+- strcpy (g_xpm[2],colors[6*which+2]);
++ g_xpm[2] = strdup(colors[6*which+2]);
+ g_xpm[2][0]='a';
+- strcpy (g_xpm[3],colors[6*which+5]);
++ g_xpm[3] = colors[6*which+5];
+ makePixmap(g_xpm, &letters[foo]);
+ break;
+ case 'h':
+- strcpy (h_xpm[2],colors[6*which+2]);
++ h_xpm[2] = strdup(colors[6*which+2]);
+ h_xpm[2][0]='a';
+- strcpy (h_xpm[3],colors[6*which+5]);
++ h_xpm[3] = colors[6*which+5];
+ makePixmap(h_xpm, &letters[foo]);
+ break;
+ case 'i':
+- strcpy (i_xpm[2],colors[6*which+2]);
++ i_xpm[2] = strdup(colors[6*which+2]);
+ i_xpm[2][0]='a';
+- strcpy (i_xpm[3],colors[6*which+5]);
++ i_xpm[3] = colors[6*which+5];
+ makePixmap(i_xpm, &letters[foo]);
+ break;
+ case 'j':
+- strcpy (j_xpm[2],colors[6*which+2]);
++ j_xpm[2] = strdup(colors[6*which+2]);
+ j_xpm[2][0]='a';
+- strcpy (j_xpm[3],colors[6*which+5]);
++ j_xpm[3] = colors[6*which+5];
+ makePixmap(j_xpm, &letters[foo]);
+ break;
+ case 'k':
+- strcpy (k_xpm[2],colors[6*which+2]);
++ k_xpm[2] = strdup(colors[6*which+2]);
+ k_xpm[2][0]='a';
+- strcpy (k_xpm[3],colors[6*which+5]);
++ k_xpm[3] = colors[6*which+5];
+ makePixmap(k_xpm, &letters[foo]);
+ break;
+ case 'l':
+- strcpy (l_xpm[2],colors[6*which+2]);
++ l_xpm[2] = strdup(colors[6*which+2]);
+ l_xpm[2][0]='a';
+- strcpy (l_xpm[3],colors[6*which+5]);
++ l_xpm[3] = colors[6*which+5];
+ makePixmap(l_xpm, &letters[foo]);
+ break;
+ case 'm':
+- strcpy (m_xpm[2],colors[6*which+2]);
++ m_xpm[2] = strdup(colors[6*which+2]);
+ m_xpm[2][0]='a';
+- strcpy (m_xpm[3],colors[6*which+5]);
++ m_xpm[3] = colors[6*which+5];
+ makePixmap(m_xpm, &letters[foo]);
+ break;
+ case 'n':
+- strcpy (n_xpm[2],colors[6*which+2]);
++ n_xpm[2] = strdup(colors[6*which+2]);
+ n_xpm[2][0]='a';
+- strcpy (n_xpm[3],colors[6*which+5]);
++ n_xpm[3] = colors[6*which+5];
+ makePixmap(n_xpm, &letters[foo]);
+ break;
+ case 'o':
+- strcpy (o_xpm[2],colors[6*which+2]);
++ o_xpm[2] = strdup(colors[6*which+2]);
+ o_xpm[2][0]='a';
+- strcpy (o_xpm[3],colors[6*which+5]);
++ o_xpm[3] = colors[6*which+5];
+ makePixmap(o_xpm, &letters[foo]);
+ break;
+ case 'p':
+- strcpy (p_xpm[2],colors[6*which+2]);
++ p_xpm[2] = strdup(colors[6*which+2]);
+ p_xpm[2][0]='a';
+- strcpy (p_xpm[3],colors[6*which+5]);
++ p_xpm[3] = colors[6*which+5];
+ makePixmap(p_xpm, &letters[foo]);
+ break;
+ case 'q':
+- strcpy (q_xpm[2],colors[6*which+2]);
++ q_xpm[2] = strdup(colors[6*which+2]);
+ q_xpm[2][0]='a';
+- strcpy (q_xpm[3],colors[6*which+5]);
++ q_xpm[3] = colors[6*which+5];
+ makePixmap(q_xpm, &letters[foo]);
+ break;
+ case 'r':
+- strcpy (r_xpm[2],colors[6*which+2]);
++ r_xpm[2] = strdup(colors[6*which+2]);
+ r_xpm[2][0]='a';
+- strcpy (r_xpm[3],colors[6*which+5]);
++ r_xpm[3] = colors[6*which+5];
+ makePixmap(r_xpm, &letters[foo]);
+ break;
+ case 's':
+- strcpy (s_xpm[2],colors[6*which+2]);
++ s_xpm[2] = strdup(colors[6*which+2]);
+ s_xpm[2][0]='a';
+- strcpy (s_xpm[3],colors[6*which+5]);
++ s_xpm[3] = colors[6*which+5];
+ makePixmap(s_xpm, &letters[foo]);
+ break;
+ case 't':
+- strcpy (t_xpm[2],colors[6*which+2]);
++ t_xpm[2] = strdup(colors[6*which+2]);
+ t_xpm[2][0]='a';
+- strcpy (t_xpm[3],colors[6*which+5]);
++ t_xpm[3] = colors[6*which+5];
+ makePixmap(t_xpm, &letters[foo]);
+ break;
+ case 'u':
+- strcpy (u_xpm[2],colors[6*which+2]);
++ u_xpm[2] = strdup(colors[6*which+2]);
+ u_xpm[2][0]='a';
+- strcpy (u_xpm[3],colors[6*which+5]);
++ u_xpm[3] = colors[6*which+5];
+ makePixmap(u_xpm, &letters[foo]);
+ break;
+ case 'v':
+- strcpy (v_xpm[2],colors[6*which+2]);
++ v_xpm[2] = strdup(colors[6*which+2]);
+ v_xpm[2][0]='a';
+- strcpy (v_xpm[3],colors[6*which+5]);
++ v_xpm[3] = colors[6*which+5];
+ makePixmap(v_xpm, &letters[foo]);
+ break;
+ case 'w':
+- strcpy (w_xpm[2],colors[6*which+2]);
++ w_xpm[2] = strdup(colors[6*which+2]);
+ w_xpm[2][0]='a';
+- strcpy (w_xpm[3],colors[6*which+5]);
++ w_xpm[3] = colors[6*which+5];
+ makePixmap(w_xpm, &letters[foo]);
+ break;
+ case 'x':
+- strcpy (x_xpm[2],colors[6*which+2]);
++ x_xpm[2] = strdup(colors[6*which+2]);
+ x_xpm[2][0]='a';
+- strcpy (x_xpm[3],colors[6*which+5]);
++ x_xpm[3] = colors[6*which+5];
+ makePixmap(x_xpm, &letters[foo]);
+ break;
+ case 'y':
+- strcpy (y_xpm[2],colors[6*which+2]);
++ y_xpm[2] = strdup(colors[6*which+2]);
+ y_xpm[2][0]='a';
+- strcpy (y_xpm[3],colors[6*which+5]);
++ y_xpm[3] = colors[6*which+5];
+ makePixmap(y_xpm, &letters[foo]);
+ break;
+ case 'z':
+- strcpy (z_xpm[2],colors[6*which+2]);
++ z_xpm[2] = strdup(colors[6*which+2]);
+ z_xpm[2][0]='a';
+- strcpy (z_xpm[3],colors[6*which+5]);
++ z_xpm[3] = colors[6*which+5];
+ makePixmap(z_xpm, &letters[foo]);
+ break;
+ }
diff --git a/games/xnibbles/patches/patch-ae b/games/xnibbles/patches/patch-ae
new file mode 100644
index 00000000000..84d4da3e95c
--- /dev/null
+++ b/games/xnibbles/patches/patch-ae
@@ -0,0 +1,21 @@
+$NetBSD: patch-ae,v 1.1 2008/09/21 08:17:40 dholland Exp $
+
+--- worm.c~ 1998-03-03 20:48:43.000000000 -0500
++++ worm.c 2008-09-21 02:15:07.000000000 -0400
+@@ -52,11 +52,11 @@ worm::worm(int aup, int adown, int aleft
+ score = 0;
+ dscore = 0;
+ numCuts = 0;
+- strcpy (worm_xpm[2],colors[6*which]);
+- strcpy (worm_xpm[3],colors[6*which+1]);
+- strcpy (worm_xpm[4],colors[6*which+2]);
+- strcpy (worm_xpm[5],colors[6*which+3]);
+- strcpy (worm_xpm[6],colors[6*which+4]);
++ worm_xpm[2] = colors[6*which];
++ worm_xpm[3] = colors[6*which+1];
++ worm_xpm[4] = colors[6*which+2];
++ worm_xpm[5] = colors[6*which+3];
++ worm_xpm[6] = colors[6*which+4];
+ makePixmap (worm_xpm, &wormImage);
+ meltCount = MELTSIZE;
+ meltFlag = meltDelay;
diff --git a/games/xnibbles/patches/patch-af b/games/xnibbles/patches/patch-af
new file mode 100644
index 00000000000..81bb6f3df4c
--- /dev/null
+++ b/games/xnibbles/patches/patch-af
@@ -0,0 +1,17 @@
+$NetBSD: patch-af,v 1.1 2008/09/21 08:17:40 dholland Exp $
+
+--- xnibbles.6~ 1998-03-05 18:34:29.000000000 -0500
++++ xnibbles.6 2008-09-21 02:25:22.000000000 -0400
+@@ -95,7 +95,11 @@ This bonus reverses the direction of you
+ .SH GAME PLAY
+ Each player has five keys. Worm controls for the first player are the arrow
+ keys, sometimes the numeric keypad :), and for the second player control is
+-'w' up, 's' down, 'a' left, and 'd' right. Each player also has an action key,
++ 'w' up,
++ 's' down,
++ 'a' left, and
++ 'd' right.
++Each player also has an action key,
+ which activates the cyan bonus described in section [4]. For the first player,
+ the action key is Right Control, and for the second, the action key is Left
+ Control.