supertux_0.1.3: Fix complilation with gcc 4.5
authorKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:42:06 +0000 (16:42 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 26 Oct 2010 23:43:08 +0000 (16:43 -0700)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
recipes/supertux/files/compilation-fixes.patch [new file with mode: 0644]
recipes/supertux/supertux_0.1.3.bb

diff --git a/recipes/supertux/files/compilation-fixes.patch b/recipes/supertux/files/compilation-fixes.patch
new file mode 100644 (file)
index 0000000..495c735
--- /dev/null
@@ -0,0 +1,85 @@
+Index: supertux-0.1.3/src/badguy.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/badguy.cpp
++++ supertux-0.1.3/src/badguy.cpp
+@@ -21,6 +21,7 @@
+ //  02111-1307, USA.
+ #include <iostream>
++#include <cstdlib>
+ #include <math.h>
+ #include "globals.h"
+Index: supertux-0.1.3/src/configfile.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/configfile.cpp
++++ supertux-0.1.3/src/configfile.cpp
+@@ -18,7 +18,7 @@
+ //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ #include <stdlib.h>
+-#include <string>
++#include <cstring>
+ #include "configfile.h"
+ #include "setup.h"
+ #include "globals.h"
+Index: supertux-0.1.3/src/gameobjs.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/gameobjs.cpp
++++ supertux-0.1.3/src/gameobjs.cpp
+@@ -19,6 +19,7 @@
+ //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+ //  02111-1307, USA.
+ #include <algorithm>
++#include <cstring>
+ #include "world.h"
+ #include "tile.h"
+ #include "gameloop.h"
+Index: supertux-0.1.3/src/particlesystem.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/particlesystem.cpp
++++ supertux-0.1.3/src/particlesystem.cpp
+@@ -20,6 +20,7 @@
+ #include "particlesystem.h"
+ #include <iostream>
++#include <cstdlib>
+ #include <math.h>
+ #include "globals.h"
+ #include "world.h"
+Index: supertux-0.1.3/src/sprite_manager.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/sprite_manager.cpp
++++ supertux-0.1.3/src/sprite_manager.cpp
+@@ -18,6 +18,7 @@
+ //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ #include <iostream>
++#include <cstring>
+ #include "lispreader.h"
+ #include "sprite_manager.h"
+Index: supertux-0.1.3/src/tile.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/tile.cpp
++++ supertux-0.1.3/src/tile.cpp
+@@ -21,6 +21,7 @@
+ #include "tile.h"
+ #include "scene.h"
+ #include "assert.h"
++#include <cstring>
+ TileManager* TileManager::instance_  = 0;
+ std::set<TileGroup>* TileManager::tilegroups_  = 0;
+Index: supertux-0.1.3/src/worldmap.cpp
+===================================================================
+--- supertux-0.1.3.orig/src/worldmap.cpp
++++ supertux-0.1.3/src/worldmap.cpp
+@@ -20,6 +20,7 @@
+ #include <iostream>
+ #include <fstream>
+ #include <vector>
++#include <cstring>
+ #include <assert.h>
+ #include <unistd.h>
+ #include "globals.h"
index 41c907c..b4b81e9 100644 (file)
@@ -3,7 +3,7 @@ in a style similar to the original SuperMario games."
 SECTION = "games"
 PRIORITY = "optional"
 LICENSE = "GPL"
-PR = "r4"
+PR = "r5"
 
 RDEPENDS_${PN} += "libmikmod"
 
@@ -14,6 +14,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/super-tux/supertux-${PV}.tar.bz2 \
 #           http://ssel.vub.ac.be/Members/DennisWagelaar/download/zaurus/supertux-0.1.2-fp.patch.gz \
           file://supertux.png \
           file://install-no-overwrite.patch \
+          file://compilation-fixes.patch \
           file://supertux.desktop \
           "