kobodeluxe: added fix which renames a symbol that clashes with a std C one
authorRobert Schuster <rschus@tarub.tarent.buero>
Tue, 8 Mar 2011 17:50:16 +0000 (18:50 +0100)
committerRobert Schuster <rschus@tarub.tarent.buero>
Sat, 12 Mar 2011 08:07:36 +0000 (09:07 +0100)
recipes/kobodeluxe/files/buildfix.patch [new file with mode: 0644]
recipes/kobodeluxe/kobodeluxe_0.5.1.bb

diff --git a/recipes/kobodeluxe/files/buildfix.patch b/recipes/kobodeluxe/files/buildfix.patch
new file mode 100644 (file)
index 0000000..f75f11c
--- /dev/null
@@ -0,0 +1,66 @@
+Index: KoboDeluxe-0.5.1/enemies.h
+===================================================================
+--- KoboDeluxe-0.5.1.orig/enemies.h
++++ KoboDeluxe-0.5.1/enemies.h
+@@ -72,7 +72,7 @@ extern const enemy_kind bombdeto;
+ extern const enemy_kind cannon;
+ extern const enemy_kind pipe1;
+ extern const enemy_kind core;
+-extern const enemy_kind pipe2;
++extern const enemy_kind kobo_pipe2;
+ extern const enemy_kind rock;
+ extern const enemy_kind ring;
+ extern const enemy_kind enemy_m1;
+@@ -430,7 +430,7 @@ inline int _enemy::realize()
+ inline int _enemy::is_pipe()
+ {
+-      return ((_state != notuse) && ((ek == &pipe1) || (ek == &pipe2)));
++      return ((_state != notuse) && ((ek == &pipe1) || (ek == &kobo_pipe2)));
+ }
+Index: KoboDeluxe-0.5.1/enemy.cpp
+===================================================================
+--- KoboDeluxe-0.5.1.orig/enemy.cpp
++++ KoboDeluxe-0.5.1/enemy.cpp
+@@ -755,10 +755,10 @@ void _enemy::move_core()
+ void _enemy::kill_core()
+ {
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+       enemies.make(&explosion4, CS2PIXEL(x), CS2PIXEL(y));
+       sound.g_base_core_explo(x, y);
+       release();
+@@ -978,19 +978,19 @@ void _enemy::move_pipe2()
+       }
+       p ^= a;
+       if(p & U_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+       if(p & R_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+       if(p & D_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+       if(p & L_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+       manage.add_score(10);
+       release();
+ }
+-const enemy_kind pipe2 = {
++const enemy_kind kobo_pipe2 = {
+       0,
+       &_enemy::make_pipe2,
+       &_enemy::move_pipe2,
index 9327215..617b008 100644 (file)
@@ -5,7 +5,7 @@ LICENSE = "GPL"
 AUTHOR = "David Olofson <david@olofson.net>"
 HOMEPAGE = "http://olofson.net/kobodl"
 
-PR = "r5"
+PR = "r6"
 
 DEPENDS = "libsdl-image virtual/libsdl"
 
@@ -18,6 +18,7 @@ SRC_URI = "http://olofson.net/kobodl/download/KoboDeluxe-${PV}.tar.bz2 \
           file://kobodeluxe-sysconf-support.patch \
           file://kobodeluxe-menu-pointer.patch \
           file://kobodeluxe-dimension-autoswap.patch \
+          file://buildfix.patch \
            file://default-config \
           "