From 6b4892ead3dc1a9d1b876f8648e18acd8a7aa02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 15 Mar 2015 01:14:51 +0100 Subject: [PATCH] scummvm: fix build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * inherit autotools-brokensep * use pkg-config to gather information for sdl Signed-off-by: Andreas Müller --- ...pkg-config-to-gather-sdl-information.patch | 39 +++++++++++++++++++ recipes-games/scummvm/scummvm_1.5.0.bb | 10 +++-- 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 recipes-games/scummvm/scummvm/0001-use-pkg-config-to-gather-sdl-information.patch diff --git a/recipes-games/scummvm/scummvm/0001-use-pkg-config-to-gather-sdl-information.patch b/recipes-games/scummvm/scummvm/0001-use-pkg-config-to-gather-sdl-information.patch new file mode 100644 index 0000000..6cdf2f5 --- /dev/null +++ b/recipes-games/scummvm/scummvm/0001-use-pkg-config-to-gather-sdl-information.patch @@ -0,0 +1,39 @@ +From 27c44b052ca69873046f32631b3ccbe1d6b11dd3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sun, 15 Mar 2015 00:57:10 +0100 +Subject: [PATCH] use pkg-config to gather sdl information +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Upstream-Status: Inappropriate [oe specific] + +Signed-off-by: Andreas Müller +--- + configure | 7 +++---- + 1 file changed, 3 insertions(+), 4 deletions(-) + +diff --git a/configure b/configure +index 9496cf8..1bce86e 100755 +--- a/configure ++++ b/configure +@@ -2710,13 +2710,12 @@ MODULES="$MODULES backends/platform/$_backend" + # + case $_backend in + dingux | gp2x | gph | linuxmoto | maemo | openpandora | samsungtv | sdl) +- find_sdlconfig +- INCLUDES="$INCLUDES `$_sdlconfig --prefix="$_sdlpath" --cflags`" +- LIBS="$LIBS `$_sdlconfig --prefix="$_sdlpath" --libs`" ++ INCLUDES="$INCLUDES `pkg-config --cflags sdl`" ++ LIBS="$LIBS `pkg-config --libs sdl`" + DEFINES="$DEFINES -DSDL_BACKEND" + add_line_to_config_mk "SDL_BACKEND = 1" + +- _sdlversion=`$_sdlconfig --version` ++ _sdlversion=`pkg-config --modversion` + case $_sdlversion in + 1.3.*) + add_line_to_config_mk "USE_SDL13 = 1" +-- +1.9.3 + diff --git a/recipes-games/scummvm/scummvm_1.5.0.bb b/recipes-games/scummvm/scummvm_1.5.0.bb index 31cbc5d..9799e02 100644 --- a/recipes-games/scummvm/scummvm_1.5.0.bb +++ b/recipes-games/scummvm/scummvm_1.5.0.bb @@ -5,11 +5,13 @@ PRIORITY = "optional" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=761a03e159b8bb74f377e30458e210e1" -inherit autotools +inherit autotools-brokensep -SRC_URI = "${SOURCEFORGE_MIRROR}/scummvm/scummvm-${PV}.tar.bz2 \ - file://scummvm.desktop \ - file://no-strip.patch \ +SRC_URI = " \ + ${SOURCEFORGE_MIRROR}/scummvm/scummvm-${PV}.tar.bz2 \ + file://0001-use-pkg-config-to-gather-sdl-information.patch \ + file://scummvm.desktop \ + file://no-strip.patch \ " DEPENDS = "virtual/libsdl libvorbis libogg zlib \