summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjmmv <jmmv>2005-03-29 13:59:40 +0000
committerjmmv <jmmv>2005-03-29 13:59:40 +0000
commit51ba8f1d059773bdbf105664b31d055bb8bc915a (patch)
tree978d63bc60d668a5bcb2ff6571c047f88e00cacb /games
parent97ee466cf27f93601800c9f769d8a12d56eb4dce (diff)
downloadpkgsrc-51ba8f1d059773bdbf105664b31d055bb8bc915a.tar.gz
Fix patch that corrected the build with gcc 2.95 (C++ style comments are
not supported). Closes PR pkg/29820 by jklowden at schemamania.org.
Diffstat (limited to 'games')
-rw-r--r--games/gnome2-games/distinfo4
-rw-r--r--games/gnome2-games/patches/patch-ad26
2 files changed, 9 insertions, 21 deletions
diff --git a/games/gnome2-games/distinfo b/games/gnome2-games/distinfo
index 7472187a55b..e8fdaaee817 100644
--- a/games/gnome2-games/distinfo
+++ b/games/gnome2-games/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.16 2005/03/22 16:33:30 jmmv Exp $
+$NetBSD: distinfo,v 1.17 2005/03/29 13:59:40 jmmv Exp $
SHA1 (gnome-games-2.10.0.tar.bz2) = a941d33bbb881a0ed52d95252c88d2e3f25c7e02
RMD160 (gnome-games-2.10.0.tar.bz2) = dffc3f2c59451fb883e6cfc51defdcc58657d0a6
Size (gnome-games-2.10.0.tar.bz2) = 5292770 bytes
SHA1 (patch-aa) = e74547a19267b1a39528d9556d115fff4f7cd21d
SHA1 (patch-ac) = e54f3fecee226f78edf17dc686c6bde2a25e36fd
-SHA1 (patch-ad) = 52360026ae111850c8097d315243d040ec654fcf
+SHA1 (patch-ad) = fe37a9355b68f4dbd89590a6c1baab56c480840c
diff --git a/games/gnome2-games/patches/patch-ad b/games/gnome2-games/patches/patch-ad
index 2d67711f145..b686ccfc390 100644
--- a/games/gnome2-games/patches/patch-ad
+++ b/games/gnome2-games/patches/patch-ad
@@ -1,33 +1,21 @@
-$NetBSD: patch-ad,v 1.1 2005/03/16 15:39:02 rillig Exp $
+$NetBSD: patch-ad,v 1.2 2005/03/29 13:59:40 jmmv Exp $
-Use C comments, not C++. Needed for gcc-2.95.3.
+Drop C++ comments; they break the build with gcc-2.95.
---- iagno/othello.c.orig Wed Jan 12 10:21:32 2005
-+++ iagno/othello.c Wed Mar 16 00:05:05 2005
-@@ -551,7 +551,7 @@ find_best_move(gint8 board[8][8], guint
- memcpy (tboard, board, sizeof (gint8) * 8 * 8);
- move_board(tboard, i, j, me, 0);
-
-- // assume that opponent takes best move
-+ /* assume that opponent takes best move */
- tmp_move = find_best_move(tboard, not_me, ply_depth-1,
- -pass_thresh, -use_thresh, 0, 0);
-
-@@ -808,14 +808,14 @@ eval_board (gint8 board[8][8], guint me)
+--- iagno/othello.c.orig 2005-01-25 06:44:38.000000000 +0000
++++ iagno/othello.c
+@@ -784,14 +784,11 @@ eval_board (gint8 board[8][8], guint me)
found_free = TRUE;
}
- // check if a player is dead
-+ /* check if a player is dead */
if (!found_me && found_not_me)
- return (-10000);
+ return (S_LOSING_GAME);
else if (found_me && !found_not_me)
- return (10000);
+ return (S_WINNING_GAME);
- // if the game is finished, return the actual score rather than
- // a huristic
-+ /* if the game is finished, return the actual score rather than
-+ * a huristic */
if (!found_free)
return (actual_score);