mame: initial add 0168

* it compiles for armv7
* installation has to be performed manually

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2015-12-28 00:21:29 +01:00
parent f06a35a399
commit 1058beaec1
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,75 @@
From 168f7f181099e6fbbb4ba7100e45f224afec6107 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
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 <schnitzeltony@googlemail.com>
---
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

View File

@@ -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 \
"