From 7a36f54e178620e4d6f32f070dd9ed88bdfc926c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 29 Dec 2015 13:05:29 +0100 Subject: [PATCH] mame: do install binaries and use more system libraries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This version was run tested on raspi2 - unfortunately even 8bit games are terribly slow. Signed-off-by: Andreas Müller --- recipes-emulators/mame/mame_0168.bb | 48 ++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) diff --git a/recipes-emulators/mame/mame_0168.bb b/recipes-emulators/mame/mame_0168.bb index e586510..61e4f4e 100644 --- a/recipes-emulators/mame/mame_0168.bb +++ b/recipes-emulators/mame/mame_0168.bb @@ -13,7 +13,22 @@ SRC_URI[sha256sum] = "3b6db52ddffed867ae171664e327f0b2bade64139d3450dc7166c4f90b S = "${WORKDIR}/${BPN}-${BPN}${PV}" -DEPENDS = "libsdl libsdl-ttf expat zlib jpeg lua-native" +# TBD +# * move to libsdl2 libsdl2-ttf + +DEPENDS = " \ + libsdl \ + libsdl-ttf \ + fontconfig \ + libxinerama \ + \ + expat \ + zlib \ + flac \ + jpeg \ + lua lua-native \ + sqlite3 \ +" EXTRA_OEMAKE += " \ linux \ @@ -26,5 +41,36 @@ EXTRA_OEMAKE += " \ USE_QTDEBUG=0 \ NOWERROR=1 \ USE_SYSTEM_LIB_EXPAT=1 \ + USE_SYSTEM_LIB_ZLIB=1 \ + USE_SYSTEM_LIB_FLAC=1 \ USE_SYSTEM_LIB_JPEG=1 \ + USE_SYSTEM_LIB_LUA=1 \ + USE_SYSTEM_LIB_SQLITE3=1 \ " + +do_install() { + # Note: Unstripped mame binary for armv7 is > 1GB!! + install -d ${D}${bindir} + install mame ${D}${bindir}/ + + install -d ${D}${libexecdir} + for binary in \ + castool \ + chdman \ + floptool \ + imgtool \ + jedutil \ + ldresample \ + ldverify \ + nltool \ + nlwav \ + pngcmp \ + split \ + srcclean \ + testkeys \ + unidasm \ + ; \ + do + install $binary ${D}${libexecdir}/ + done +}