summaryrefslogtreecommitdiff
path: root/games-board/blokish/files
diff options
context:
space:
mode:
Diffstat (limited to 'games-board/blokish/files')
-rw-r--r--games-board/blokish/files/blokish-0.9.4-gcc43.patch12
-rw-r--r--games-board/blokish/files/blokish-0.9.4-underlink.patch9
-rw-r--r--games-board/blokish/files/blokish-0.9.4-wxgtk.patch21
3 files changed, 42 insertions, 0 deletions
diff --git a/games-board/blokish/files/blokish-0.9.4-gcc43.patch b/games-board/blokish/files/blokish-0.9.4-gcc43.patch
new file mode 100644
index 000000000000..f53e5495aa57
--- /dev/null
+++ b/games-board/blokish/files/blokish-0.9.4-gcc43.patch
@@ -0,0 +1,12 @@
+--- a/src/base.h
++++ b/src/base.h
+@@ -25,6 +25,9 @@
+ #include <vector>
+ #include <fstream>
+ #include <iostream>
++#include <algorithm>
++#include <cstdlib>
++#include <climits>
+
+ enum BlokishID
+ {
diff --git a/games-board/blokish/files/blokish-0.9.4-underlink.patch b/games-board/blokish/files/blokish-0.9.4-underlink.patch
new file mode 100644
index 000000000000..a4433379e37a
--- /dev/null
+++ b/games-board/blokish/files/blokish-0.9.4-underlink.patch
@@ -0,0 +1,9 @@
+--- a/makefile.am 2011-06-21 08:43:21.804880067 +0200
++++ b/makefile.am 2011-06-21 08:43:49.875661081 +0200
+@@ -1,5 +1,5 @@
+ INCLUDES = `wx-config --cxxflags`
+-LIBS = `wx-config --libs --gl-libs`
++LIBS = `wx-config --libs --gl-libs` -lGL -lm
+
+ bin_PROGRAMS = blokish
+
diff --git a/games-board/blokish/files/blokish-0.9.4-wxgtk.patch b/games-board/blokish/files/blokish-0.9.4-wxgtk.patch
new file mode 100644
index 000000000000..1821e0b5f86d
--- /dev/null
+++ b/games-board/blokish/files/blokish-0.9.4-wxgtk.patch
@@ -0,0 +1,21 @@
+diff -ru blokish/src/blokish.cpp blokish/src/blokish.cpp
+--- blokish/src/blokish.cpp 2007-04-01 17:01:26.000000000 -0400
++++ blokish/src/blokish.cpp 2015-11-15 21:48:32.426081482 -0500
+@@ -903,7 +903,7 @@
+ void OnSaveGame(wxCommandEvent &event)
+ {
+ WaitForAIToFinish();
+- wxString filename = wxFileSelector(wxString::FromAscii("Select a filename to save as"), wxString::FromAscii(""), wxString::FromAscii("default.sav"), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxSAVE);
++ wxString filename = wxFileSelector(wxString::FromAscii("Select a filename to save as"), wxString::FromAscii(""), wxString::FromAscii("default.sav"), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxFD_SAVE);
+ if(!filename.empty())
+ {
+ std::ofstream outFile(filename.fn_str(), std::ios::binary);
+@@ -915,7 +915,7 @@
+ void OnLoadGame(wxCommandEvent &event)
+ {
+ WaitForAIToFinish();
+- wxString filename = wxFileSelector(wxString::FromAscii("Select a game to load"), wxString::FromAscii(""), wxString::FromAscii(""), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxOPEN | wxFILE_MUST_EXIST);
++ wxString filename = wxFileSelector(wxString::FromAscii("Select a game to load"), wxString::FromAscii(""), wxString::FromAscii(""), wxString::FromAscii(".sav"), wxString::FromAscii("*.sav"), wxFD_OPEN | wxFD_FILE_MUST_EXIST);
+ if(!filename.empty())
+ {
+ std::ifstream inFile(filename.fn_str(), std::ios::binary);