From cbd58fbf1bbc1189fbe62283eaf0c1d2837fac5f Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Wed, 15 Jan 2014 01:09:55 -0600 Subject: [PATCH] sdl2: Fix build for x86 secondary arch * Patch to remove old be/ include paths * Fix sdl2-config, you're supposed to let the fixPkgconfig create the symlink * Requires recent gcc update --- media-libs/libsdl2/libsdl2-2.0.1.recipe | 8 +- .../libsdl2/patches/libsdl2-2.0.1.patchset | 115 ++++++++++++++++++ 2 files changed, 120 insertions(+), 3 deletions(-) create mode 100644 media-libs/libsdl2/patches/libsdl2-2.0.1.patchset diff --git a/media-libs/libsdl2/libsdl2-2.0.1.recipe b/media-libs/libsdl2/libsdl2-2.0.1.recipe index abbaff6d7..0c0c62e83 100644 --- a/media-libs/libsdl2/libsdl2-2.0.1.recipe +++ b/media-libs/libsdl2/libsdl2-2.0.1.recipe @@ -8,7 +8,7 @@ emulators, and popular games. HOMEPAGE="http://www.libsdl.org/" SRC_URI="http://www.libsdl.org/release/SDL2-2.0.1.tar.gz" CHECKSUM_MD5="0eb97039488bf463e775295f7b18b227" -REVISION="2" +REVISION="3" LICENSE="Zlib" COPYRIGHT="1997-2013 Sam Lantinga" @@ -52,6 +52,8 @@ BUILD_PREREQUIRES=" SOURCE_DIR="SDL2-$portVersion" +PATCHES="libsdl2-2.0.1.patchset" + BUILD() { runConfigure ./configure @@ -70,10 +72,10 @@ INSTALL() libSDL2-2.0 fixPkgconfig - fixDevelopLibDirReferences $binDir/sdl2-config$secondaryArchSuffix + fixDevelopLibDirReferences $binDir/sdl2-config packageEntries devel \ - $developDir $binDir/sdl2-config$secondaryArchSuffix $dataDir + $developDir $binDir/sdl2-config $dataDir } # ----- devel package ------------------------------------- diff --git a/media-libs/libsdl2/patches/libsdl2-2.0.1.patchset b/media-libs/libsdl2/patches/libsdl2-2.0.1.patchset new file mode 100644 index 000000000..69c04b413 --- /dev/null +++ b/media-libs/libsdl2/patches/libsdl2-2.0.1.patchset @@ -0,0 +1,115 @@ +From 5491ee3ebfd9ddb58dad8e46a0b9afd30e12f000 Mon Sep 17 00:00:00 2001 +From: Alexander von Gluck IV +Date: Wed, 15 Jan 2014 00:55:06 -0600 +Subject: [PATCH] Haiku: Clean up includes + +* Remove random references to be/os/ +--- + src/joystick/beos/SDL_bejoystick.cc | 4 ++-- + src/loadso/beos/SDL_sysloadso.c | 2 +- + src/thread/beos/SDL_syssem.c | 2 +- + src/thread/beos/SDL_systhread.c | 2 +- + src/thread/beos/SDL_systhread_c.h | 2 +- + src/timer/beos/SDL_systimer.c | 2 +- + src/video/bwindow/SDL_BWin.h | 4 ++-- + 7 files changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/joystick/beos/SDL_bejoystick.cc b/src/joystick/beos/SDL_bejoystick.cc +index c324581..2b93d09 100644 +--- a/src/joystick/beos/SDL_bejoystick.cc ++++ b/src/joystick/beos/SDL_bejoystick.cc +@@ -24,8 +24,8 @@ + + /* This is the system specific header for the SDL joystick API */ + +-#include +-#include ++#include ++#include + + extern "C" + { +diff --git a/src/loadso/beos/SDL_sysloadso.c b/src/loadso/beos/SDL_sysloadso.c +index 524cd71..0679bcb 100644 +--- a/src/loadso/beos/SDL_sysloadso.c ++++ b/src/loadso/beos/SDL_sysloadso.c +@@ -26,7 +26,7 @@ + /* System dependent library loading routines */ + + #include +-#include ++#include + + #include "SDL_loadso.h" + +diff --git a/src/thread/beos/SDL_syssem.c b/src/thread/beos/SDL_syssem.c +index 9661f90..269557e 100644 +--- a/src/thread/beos/SDL_syssem.c ++++ b/src/thread/beos/SDL_syssem.c +@@ -24,7 +24,7 @@ + + /* Semaphores in the BeOS environment */ + +-#include ++#include + + #include "SDL_thread.h" + +diff --git a/src/thread/beos/SDL_systhread.c b/src/thread/beos/SDL_systhread.c +index 11646f9..7371f0a 100644 +--- a/src/thread/beos/SDL_systhread.c ++++ b/src/thread/beos/SDL_systhread.c +@@ -26,7 +26,7 @@ + + #include + #include +-#include ++#include + + #include "SDL_mutex.h" + #include "SDL_thread.h" +diff --git a/src/thread/beos/SDL_systhread_c.h b/src/thread/beos/SDL_systhread_c.h +index a350ab5..65ef60d 100644 +--- a/src/thread/beos/SDL_systhread_c.h ++++ b/src/thread/beos/SDL_systhread_c.h +@@ -21,7 +21,7 @@ + #include "SDL_config.h" + + #include +-#include ++#include + + typedef thread_id SYS_ThreadHandle; + +diff --git a/src/timer/beos/SDL_systimer.c b/src/timer/beos/SDL_systimer.c +index fd22e44..370e2d9 100644 +--- a/src/timer/beos/SDL_systimer.c ++++ b/src/timer/beos/SDL_systimer.c +@@ -22,7 +22,7 @@ + + #ifdef SDL_TIMER_BEOS + +-#include ++#include + + #include "SDL_timer.h" + +diff --git a/src/video/bwindow/SDL_BWin.h b/src/video/bwindow/SDL_BWin.h +index 6b6a71e..fc034ed 100644 +--- a/src/video/bwindow/SDL_BWin.h ++++ b/src/video/bwindow/SDL_BWin.h +@@ -38,9 +38,9 @@ extern "C" { + #include + #include + #include +-#include ++#include + #if SDL_VIDEO_OPENGL +-#include ++#include + #endif + #include "SDL_events.h" + #include "../../main/beos/SDL_BApp.h" +-- +1.8.3.4 +