summaryrefslogtreecommitdiff
path: root/games-puzzle/einstein/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-puzzle/einstein/files
reinit the tree, so we can have metadata
Diffstat (limited to 'games-puzzle/einstein/files')
-rw-r--r--games-puzzle/einstein/files/einstein-2.0-64bit.patch31
-rw-r--r--games-puzzle/einstein/files/einstein-2.0-as-needed.patch11
-rw-r--r--games-puzzle/einstein/files/einstein-2.0-gcc43.patch20
3 files changed, 62 insertions, 0 deletions
diff --git a/games-puzzle/einstein/files/einstein-2.0-64bit.patch b/games-puzzle/einstein/files/einstein-2.0-64bit.patch
new file mode 100644
index 000000000000..4d6656252898
--- /dev/null
+++ b/games-puzzle/einstein/files/einstein-2.0-64bit.patch
@@ -0,0 +1,31 @@
+--- einstein-2.0.orig/formatter.cpp
++++ einstein-2.0/formatter.cpp
+@@ -58,7 +58,7 @@
+ if ((c.type == INT_ARG) || (c.type == STRING_ARG) ||
+ (c.type == FLOAT_ARG) || (c.type == DOUBLE_ARG))
+ {
+- int no = (int)c.data;
++ long int no = (long int)c.data;
+ args[no - 1] = c.type;
+ }
+ }
+@@ -123,7 +123,7 @@
+ std::wstring Formatter::format(std::vector<ArgValue*> &argValues) const
+ {
+ std::wstring s;
+- int no;
++ long int no;
+
+ for (int i = 0; i < commandsCnt; i++) {
+ Command *cmd = &commands[i];
+@@ -135,8 +135,8 @@
+
+ case STRING_ARG:
+ case INT_ARG:
+- no = (int)cmd->data - 1;
+- if (no < (int)argValues.size())
++ no = (long int)cmd->data - 1;
++ if (no < (long int)argValues.size())
+ s += argValues[no]->format(cmd);
+ break;
+
diff --git a/games-puzzle/einstein/files/einstein-2.0-as-needed.patch b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch
new file mode 100644
index 000000000000..fe870bf036e7
--- /dev/null
+++ b/games-puzzle/einstein/files/einstein-2.0-as-needed.patch
@@ -0,0 +1,11 @@
+--- Makefile.old 2009-02-09 16:37:58.000000000 +0100
++++ Makefile 2009-02-09 16:38:13.000000000 +0100
+@@ -49,7 +49,7 @@
+
+
+ $(TARGET): $(OBJECTS)
+- $(CXX) $(LNFLAGS) $(OBJECTS) -o $(TARGET)
++ $(CXX) $(LDFLAGS) $(OBJECTS) -o $(TARGET) $(LNFLAGS)
+
+ clean:
+ rm -f $(OBJECTS) core* *core $(TARGET) *~
diff --git a/games-puzzle/einstein/files/einstein-2.0-gcc43.patch b/games-puzzle/einstein/files/einstein-2.0-gcc43.patch
new file mode 100644
index 000000000000..25e1815e5e41
--- /dev/null
+++ b/games-puzzle/einstein/files/einstein-2.0-gcc43.patch
@@ -0,0 +1,20 @@
+--- einstein-2.0.orig/convert.h
++++ einstein-2.0/convert.h
+@@ -5,6 +5,7 @@
+ #include <iostream>
+ #include <sstream>
+ #include <string>
++#include <typeinfo>
+
+ #include "exceptions.h"
+ #include "unicode.h"
+
+--- einstein-2.0.orig/unicode.cpp
++++ einstein-2.0/unicode.cpp
+@@ -1,5 +1,6 @@
+ #include <wchar.h>
+ #include <stdlib.h>
++#include <string.h>
+ #ifdef WIN32
+ #include <windows.h>
+ #endif