Patchwork [meta-oe,10/10] xbmc: fix .desktop for ARM

login
register
mail settings
Submitter Koen Kooi
Date April 9, 2012, 3:16 p.m.
Message ID <1333984573-28464-10-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/25445/
State Accepted
Commit cd06a14023c12002a40e2ad585d45b521e624ad2
Headers show

Comments

Koen Kooi - April 9, 2012, 3:16 p.m.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-oe/recipes-multimedia/xbmc/xbmc_git.bb |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/meta-oe/recipes-multimedia/xbmc/xbmc_git.bb b/meta-oe/recipes-multimedia/xbmc/xbmc_git.bb
index 459b571..0595c9b 100644
--- a/meta-oe/recipes-multimedia/xbmc/xbmc_git.bb
+++ b/meta-oe/recipes-multimedia/xbmc/xbmc_git.bb
@@ -58,6 +58,11 @@  do_compile_prepend() {
 	sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir)::g' ${S}/Makefile	
 }
 
+# on ARM architectures xbmc will use GLES which will make the regular wrapper fail, so start it directly
+do_install_append_arm() {
+	sed -i -e 's:Exec=xbmc:Exec=${libdir}/xbmc/xbmc.bin:g' ${D}${datadir}/applications/xbmc.desktop
+}
+
 FILES_${PN} += "${datadir}/xsessions ${datadir}/icons"
 FILES_${PN}-dbg += "${libdir}/xbmc/.debug ${libdir}/xbmc/*/.debug ${libdir}/xbmc/*/*/.debug ${libdir}/xbmc/*/*/*/.debug"