summaryrefslogtreecommitdiffstats
path: root/games/gnomegames2/files
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-06-09 13:45:19 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-06-09 13:45:19 +0800
commit289c2aeb720baddf067b2cc68842f3b2bbda847b (patch)
tree2a2273e74407d224e5882347a6d203f50571e920 /games/gnomegames2/files
parent86354dcbeda369384e6db84c5d285b5d4d55ad4c (diff)
downloadmarcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar.gz
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar.bz2
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar.lz
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar.xz
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.tar.zst
marcuscom-ports-289c2aeb720baddf067b2cc68842f3b2bbda847b.zip
- Add gnomegames2 at version 2.11.1
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4054 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'games/gnomegames2/files')
-rw-r--r--games/gnomegames2/files/patch-blackjack_src_game.cpp10
-rw-r--r--games/gnomegames2/files/patch-blackjack_src_player.cpp75
-rw-r--r--games/gnomegames2/files/patch-configure11
-rw-r--r--games/gnomegames2/files/patch-gnome-stones_Makefile.in11
-rw-r--r--games/gnomegames2/files/patch-iagno_othello.c20
5 files changed, 127 insertions, 0 deletions
diff --git a/games/gnomegames2/files/patch-blackjack_src_game.cpp b/games/gnomegames2/files/patch-blackjack_src_game.cpp
new file mode 100644
index 000000000..e99798100
--- /dev/null
+++ b/games/gnomegames2/files/patch-blackjack_src_game.cpp
@@ -0,0 +1,10 @@
+--- blackjack/src/game.cpp.orig Wed Apr 13 15:44:11 2005
++++ blackjack/src/game.cpp Wed Apr 13 15:45:24 2005
+@@ -24,6 +24,7 @@
+
+ #include <stdlib.h>
+ #include <string.h>
++#include <ctype.h>
+ #include <glib/gi18n.h>
+ #include <glib/gstdio.h>
+ #include <libxml/tree.h>
diff --git a/games/gnomegames2/files/patch-blackjack_src_player.cpp b/games/gnomegames2/files/patch-blackjack_src_player.cpp
new file mode 100644
index 000000000..0a2d1ac3b
--- /dev/null
+++ b/games/gnomegames2/files/patch-blackjack_src_player.cpp
@@ -0,0 +1,75 @@
+--- blackjack/src/player.cpp.orig Tue Jul 6 12:56:50 2004
++++ blackjack/src/player.cpp Tue Jul 6 12:59:29 2004
+@@ -262,8 +262,8 @@
+ // Player can always stand.
+
+ bestValue = value = getValueStand (*lplayer, upCard);
+- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
+- _("Stand"), value * 100);
++ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
++ _("Stand"), (long double)(value * 100));
+ bestOption = KEY_S;
+ bestOptionNumber = num_options;
+
+@@ -271,8 +271,8 @@
+ if (bj_hand_can_be_hit ()) {
+ value = getValueHit (*lplayer, upCard);
+
+- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
+- _("Hit"), value * 100);
++ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
++ _("Hit"), (long double)(value * 100));
+ if (value > bestValue) {
+ bestValue = value;
+ bestOption = KEY_H;
+@@ -282,8 +282,8 @@
+ // Check if player can double down.
+ if (bj_hand_can_be_doubled ()) {
+ value = getValueDoubleDown (*lplayer, upCard);
+- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
+- _("Double"), value * 100);
++ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
++ _("Double"), (long double)(value * 100));
+ if (value > bestValue) {
+ bestValue = value;
+ bestOption = KEY_D;
+@@ -296,8 +296,8 @@
+
+ if (bj_hand_can_be_split ()) {
+ value = getValueSplit(lplayer->cards[0].value (), upCard);
+- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
+- _("Split"), value * 100);
++ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
++ _("Split"), (long double)(value * 100));
+ if (value > bestValue) {
+ bestValue = value;
+ bestOption = KEY_P;
+@@ -308,8 +308,8 @@
+ // Check if player can surrender.
+ if (bj_hand_can_be_surrendered ()) {
+ value = -0.5;
+- mark_list[num_options++] = g_strdup_printf (" %s %8.2lf%%\n",
+- _("Surrender"), value * 100);
++ mark_list[num_options++] = g_strdup_printf (" %s %8.2Lf%%\n",
++ _("Surrender"), (long double)(value * 100));
+ if (value > bestValue) {
+ bestValue = value;
+ bestOption = KEY_R;
+@@ -439,12 +439,12 @@
+ reset ();
+
+ mark_list[0] = g_strdup_printf ("<b>%s</b>\n", _("Dealer hand probabilities"));
+- mark_list[1] = g_strdup_printf (" %s %5.2lf%%\n", _("Bust"),
+- getProbabilityBust (lupCard) * 100.0 / notBlackjack);
++ mark_list[1] = g_strdup_printf (" %s %5.2Lf%%\n", _("Bust"),
++ (long double)(getProbabilityBust (lupCard) * 100.0 / notBlackjack));
+ for (int count = 17; count <= 21; count++) {
+- mark_list[count-15] = g_strdup_printf (" %2d %5.2lf%%\n", count,
+- getProbabilityCount (count, lupCard)
+- * 100.0 / notBlackjack);
++ mark_list[count-15] = g_strdup_printf (" %2d %5.2Lf%%\n", count,
++ (long double)(getProbabilityCount (count, lupCard)
++ * 100.0 / notBlackjack));
+ }
+
+ markup = g_strconcat ("<span size=\"small\" font_family=\"monospace\" foreground=\"#eaeac1\">",
diff --git a/games/gnomegames2/files/patch-configure b/games/gnomegames2/files/patch-configure
new file mode 100644
index 000000000..f8413ef3c
--- /dev/null
+++ b/games/gnomegames2/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig Wed Dec 17 11:58:34 2003
++++ configure Wed Dec 17 11:58:35 2003
+@@ -22452,7 +22452,7 @@
+ else
+
+ cat >>confdefs.h <<_ACEOF
+-#define GNOME_ICONDIR "${prefix}/share/pixmaps"
++#define GNOME_ICONDIR "${datadir}/pixmaps"
+ _ACEOF
+
+ fi
diff --git a/games/gnomegames2/files/patch-gnome-stones_Makefile.in b/games/gnomegames2/files/patch-gnome-stones_Makefile.in
new file mode 100644
index 000000000..92fbe9e88
--- /dev/null
+++ b/games/gnomegames2/files/patch-gnome-stones_Makefile.in
@@ -0,0 +1,11 @@
+--- gnome-stones/Makefile.in.orig Tue Jul 23 20:37:40 2002
++++ gnome-stones/Makefile.in Tue Jul 23 20:38:10 2002
+@@ -202,7 +202,7 @@
+ Caves_in_files = default.caves.in tutorial.caves.in gnomekoban.caves.in atari.caves.in
+ Caves_DATA = $(Caves_in_files:.caves.in=.caves)
+
+-gtkrcdir = $(datadir)
++gtkrcdir = $(datadir)/gnome-stones
+ gtkrc_DATA = gnome-stonesrc gnome-stonesrc.ko
+
+ Mimedir = $(datadir)/mime-info
diff --git a/games/gnomegames2/files/patch-iagno_othello.c b/games/gnomegames2/files/patch-iagno_othello.c
new file mode 100644
index 000000000..1d6d8e88a
--- /dev/null
+++ b/games/gnomegames2/files/patch-iagno_othello.c
@@ -0,0 +1,20 @@
+--- iagno/othello.c.orig Tue Jan 25 11:24:35 2005
++++ iagno/othello.c Tue Jan 25 11:24:56 2005
+@@ -784,14 +784,14 @@
+ found_free = TRUE;
+ }
+
+- // check if a player is dead
++ /* check if a player is dead */
+ if (!found_me && found_not_me)
+ return (S_LOSING_GAME);
+ else if (found_me && !found_not_me)
+ 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);
+