From 1058beaec17d5cb78f58380f4976b460a10c2200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Mon, 28 Dec 2015 00:21:29 +0100 Subject: [PATCH] mame: initial add 0168 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * it compiles for armv7 * installation has to be performed manually Signed-off-by: Andreas Müller --- ...fig-for-finding-sdl-library-settings.patch | 75 +++++++++++++++++++ recipes-emulators/mame/mame_0168.bb | 30 ++++++++ 2 files changed, 105 insertions(+) create mode 100644 recipes-emulators/mame/files/0001-use-pkg-config-for-finding-sdl-library-settings.patch create mode 100644 recipes-emulators/mame/mame_0168.bb diff --git a/recipes-emulators/mame/files/0001-use-pkg-config-for-finding-sdl-library-settings.patch b/recipes-emulators/mame/files/0001-use-pkg-config-for-finding-sdl-library-settings.patch new file mode 100644 index 0000000..a7c1d67 --- /dev/null +++ b/recipes-emulators/mame/files/0001-use-pkg-config-for-finding-sdl-library-settings.patch @@ -0,0 +1,75 @@ +From 168f7f181099e6fbbb4ba7100e45f224afec6107 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Sat, 26 Dec 2015 21:29:16 +0100 +Subject: [PATCH] use pkg-config for finding sdl library settings +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Andreas Müller +--- + scripts/src/osd/sdl.lua | 6 +++--- + scripts/src/osd/sdl_cfg.lua | 6 +++--- + 2 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/scripts/src/osd/sdl.lua b/scripts/src/osd/sdl.lua +index 4cb31f3..b0ea27c 100644 +--- a/scripts/src/osd/sdl.lua ++++ b/scripts/src/osd/sdl.lua +@@ -258,7 +258,7 @@ if BASE_TARGETOS=="unix" then + } + end + else +- local str = backtick(sdlconfigcmd() .. " --libs | sed 's/-lSDLmain//'") ++ local str = backtick("pkg-config --libs sdl | sed 's/-lSDLmain//'") + addlibfromstring(str) + addoptionsfromstring(str) + end +@@ -278,7 +278,7 @@ if BASE_TARGETOS=="unix" then + } + end + end +- local str = backtick(sdlconfigcmd() .. " --libs") ++ local str = backtick("pkg-config --libs sdl") + addlibfromstring(str) + addoptionsfromstring(str) + if _OPTIONS["targetos"]~="haiku" then +@@ -299,7 +299,7 @@ if BASE_TARGETOS=="unix" then + end + end + elseif BASE_TARGETOS=="os2" then +- local str = backtick(sdlconfigcmd() .. " --libs") ++ local str = backtick("pkg-config --libs sdl") + addlibfromstring(str) + addoptionsfromstring(str) + links { +diff --git a/scripts/src/osd/sdl_cfg.lua b/scripts/src/osd/sdl_cfg.lua +index 878a5a2..febb084 100644 +--- a/scripts/src/osd/sdl_cfg.lua ++++ b/scripts/src/osd/sdl_cfg.lua +@@ -90,12 +90,12 @@ if BASE_TARGETOS=="unix" then + "MACOSX_USE_LIBSDL", + } + buildoptions { +- backtick(sdlconfigcmd() .. " --cflags | sed 's:/SDL::'"), ++ backtick("pkg-config --cflags sdl | sed 's:/SDL::'"), + } + end + else + buildoptions { +- backtick(sdlconfigcmd() .. " --cflags"), ++ backtick("pkg-config --cflags sdl"), + } + if _OPTIONS["targetos"]~="asmjs" then + buildoptions { +@@ -148,6 +148,6 @@ elseif _OPTIONS["targetos"]=="os2" then + "SDLMAME_OS2", + } + buildoptions { +- backtick(sdlconfigcmd() .. " --cflags"), ++ backtick("pkg-config --cflags sdl"), + } + end +-- +2.5.0 + diff --git a/recipes-emulators/mame/mame_0168.bb b/recipes-emulators/mame/mame_0168.bb new file mode 100644 index 0000000..e586510 --- /dev/null +++ b/recipes-emulators/mame/mame_0168.bb @@ -0,0 +1,30 @@ +SUMMARY = "Multiple Arcade Machine Emulator" +HOMEPAGE = "http://www.mamedev.org/index.php" + +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://README.md;beginline=22;endline=29;md5=4e58445eb710431608ce9127a9462da1" + +SRC_URI = " \ + https://github.com/mamedev/mame/archive/${BPN}${PV}.tar.gz \ + file://0001-use-pkg-config-for-finding-sdl-library-settings.patch \ +" +SRC_URI[md5sum] = "227a506592308e004dbd55a4dc3b51d7" +SRC_URI[sha256sum] = "3b6db52ddffed867ae171664e327f0b2bade64139d3450dc7166c4f90b6d94e8" + +S = "${WORKDIR}/${BPN}-${BPN}${PV}" + +DEPENDS = "libsdl libsdl-ttf expat zlib jpeg lua-native" + +EXTRA_OEMAKE += " \ + linux \ + CROSS_BUILD=1 \ + NOASM=1 \ + OVERRIDE_CC='${CC}' \ + OVERRIDE_CXX='${CXX}' \ + SDL_LIBVER=sdl \ + TOOLS=1 \ + USE_QTDEBUG=0 \ + NOWERROR=1 \ + USE_SYSTEM_LIB_EXPAT=1 \ + USE_SYSTEM_LIB_JPEG=1 \ +"