aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorhoek <hoek@FreeBSD.org>2004-02-02 11:55:03 +0800
committerhoek <hoek@FreeBSD.org>2004-02-02 11:55:03 +0800
commit0ebee83a9746125c1415c1462a7ce98313ad4f32 (patch)
tree32fb79de82d5221727da8530aa4278b68b812463 /games
parenta49e622081fcd807fe50ce9b087d62c78045110f (diff)
downloadfreebsd-ports-gnome-0ebee83a9746125c1415c1462a7ce98313ad4f32.tar.gz
freebsd-ports-gnome-0ebee83a9746125c1415c1462a7ce98313ad4f32.tar.zst
freebsd-ports-gnome-0ebee83a9746125c1415c1462a7ce98313ad4f32.zip
1) Fix multi-line strings to sate gcc33
2) Fix a bug which caused xprez to display garbage as the list of cards that were exchanged at the beginning of a new round of the game.
Diffstat (limited to 'games')
-rw-r--r--games/tvp/files/patch-aprez_Makefile.in14
-rw-r--r--games/tvp/files/patch-aprez_aprez.c36
-rw-r--r--games/tvp/files/patch-prez_Makefile.in14
-rw-r--r--games/tvp/files/patch-xprez_xp__deal.c14
4 files changed, 78 insertions, 0 deletions
diff --git a/games/tvp/files/patch-aprez_Makefile.in b/games/tvp/files/patch-aprez_Makefile.in
new file mode 100644
index 000000000000..95e7a1a6ec32
--- /dev/null
+++ b/games/tvp/files/patch-aprez_Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- aprez/Makefile.in.orig Sun Feb 1 22:29:17 2004
++++ aprez/Makefile.in Sun Feb 1 22:16:59 2004
+@@ -30,6 +30,8 @@
+ # code...
+ cat ../ABOUT | perl -pe 's/(\")/\\$$1/g;' > tempfile2
+ perl -e '$$a=`cat tempfile1`; $$b=`cat tempfile2`; \
++ $$a=~s/\n/\\n\"\n\"/g; $$a=~s/^/\"/g; $$a=~s/\"//; \
++ $$b=~s/\n/\\n\"\n\"/g; $$b=~s/^/\"/g; $$b=~s/\"//; \
+ while (<>) { \
+ s/\!COPYING\!/$$a/g; \
+ s/\!ABOUT\!/$$b/g; \
diff --git a/games/tvp/files/patch-aprez_aprez.c b/games/tvp/files/patch-aprez_aprez.c
new file mode 100644
index 000000000000..59546edc258d
--- /dev/null
+++ b/games/tvp/files/patch-aprez_aprez.c
@@ -0,0 +1,36 @@
+
+$FreeBSD$
+
+--- aprez/aprez.c.orig Sun Feb 1 22:31:50 2004
++++ aprez/aprez.c Sun Feb 1 22:31:21 2004
+@@ -484,18 +484,18 @@
+ tcsetattr (fileno(stdin), TCSANOW, &term);
+ }
+ if (i == 'h') {
+- bigmessage ("
+-j\tdown one
+-u\tup one
+-s\ttoggle select on card
+-l\tlay (or pass if no cards are selected)
+-v\tsave game
+-b\tload game
+-h\tcommand reference
+-w\twarranty and license
+-a\tabout
+-C-C\tquit (Ctrl-C)
+-");
++ bigmessage ("\n"
++"j\tdown one\n"
++"u\tup one\n"
++"s\ttoggle select on card\n"
++"l\tlay (or pass if no cards are selected)\n"
++"v\tsave game\n"
++"b\tload game\n"
++"h\tcommand reference\n"
++"w\twarranty and license\n"
++"a\tabout\n"
++"C-C\tquit (Ctrl-C)\n"
++"");
+ }
+ if (i == 'w') {
+ mondomessage ("!COPYING!");
diff --git a/games/tvp/files/patch-prez_Makefile.in b/games/tvp/files/patch-prez_Makefile.in
new file mode 100644
index 000000000000..99815576ddf4
--- /dev/null
+++ b/games/tvp/files/patch-prez_Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- prez/Makefile.in.orig Sun Feb 1 22:29:31 2004
++++ prez/Makefile.in Sun Feb 1 22:17:20 2004
+@@ -29,6 +29,8 @@
+ # code...
+ cat ../ABOUT | perl -pe 's/(\")/\\$$1/g;' > tempfile2
+ perl -e '$$a=`cat tempfile1`; $$b=`cat tempfile2`; \
++ $$a=~s/\n/\\n\"\n\"/g; $$a=~s/^/\"/g; $$a=~s/\"//; \
++ $$b=~s/\n/\\n\"\n\"/g; $$b=~s/^/\"/g; $$b=~s/\"//; \
+ while (<>) { \
+ s/\!COPYING\!/$$a/g; \
+ s/\!ABOUT\!/$$b/g; \
diff --git a/games/tvp/files/patch-xprez_xp__deal.c b/games/tvp/files/patch-xprez_xp__deal.c
new file mode 100644
index 000000000000..6162d81d498c
--- /dev/null
+++ b/games/tvp/files/patch-xprez_xp__deal.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- xprez/xp_deal.c.orig Sun Feb 1 22:32:15 2004
++++ xprez/xp_deal.c Sun Feb 1 22:16:17 2004
+@@ -41,7 +41,7 @@
+ */
+ int
+ xp_deal (ClientData clientdata, Tcl_Interp * interp, int argc, char ** argv) {
+- char ret[200];
++ static char ret[200];
+ int i;
+ hand_t ss;
+