diff options
Diffstat (limited to 'meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb')
-rw-r--r-- | meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb index f0ce7cf15..74bf71066 100644 --- a/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb +++ b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb | |||
@@ -3,7 +3,7 @@ DESCRIPTION = "XBMC Media Center" | |||
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=6eb631b6da7fdb01508a80213ffc35ff" | 4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=6eb631b6da7fdb01508a80213ffc35ff" |
5 | 5 | ||
6 | DEPENDS = "libusb1 libcec libplist expat yajl gperf-native libxmu fribidi mpeg2dec ffmpeg samba fontconfig curl python libass libmodplug libmicrohttpd wavpack libmms cmake-native libsdl-image libsdl-mixer virtual/egl mysql5 sqlite3 libmms faad2 libcdio libpcre boost lzo enca avahi libsamplerate0 libxinerama libxrandr libxtst bzip2 virtual/libsdl jasper zip-native zlib" | 6 | DEPENDS = "libusb1 libcec libplist expat yajl gperf-native libxmu fribidi mpeg2dec ffmpeg samba fontconfig curl python libass libmodplug libmicrohttpd wavpack libmms cmake-native libsdl-image libsdl-mixer virtual/egl mysql5 sqlite3 libmms faad2 libcdio libpcre boost lzo enca avahi libsamplerate0 libxinerama libxrandr libxtst bzip2 virtual/libsdl jasper zip-native zlib libtinyxml" |
7 | #require recipes/egl/egl.inc | 7 | #require recipes/egl/egl.inc |
8 | 8 | ||
9 | SRCREV = "82388d55dae79cbb2e486e307e23202e76a43efa" | 9 | SRCREV = "82388d55dae79cbb2e486e307e23202e76a43efa" |
@@ -15,12 +15,17 @@ SRC_URI = "git://github.com/xbmc/xbmc.git;branch=eden;protocol=git \ | |||
15 | file://0001-configure-don-t-run-python-distutils-to-find-STAGING.patch \ | 15 | file://0001-configure-don-t-run-python-distutils-to-find-STAGING.patch \ |
16 | file://0002-Revert-fixed-ios-Add-memory-barriers-to-atomic-Add-S.patch \ | 16 | file://0002-Revert-fixed-ios-Add-memory-barriers-to-atomic-Add-S.patch \ |
17 | file://0003-Revert-fixed-ios-Add-memory-barriers-to-cas-assembly.patch \ | 17 | file://0003-Revert-fixed-ios-Add-memory-barriers-to-cas-assembly.patch \ |
18 | file://configure.in-Avoid-running-code.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | inherit autotools gettext python-dir | 21 | inherit autotools gettext python-dir |
21 | 22 | ||
22 | S = "${WORKDIR}/git" | 23 | S = "${WORKDIR}/git" |
23 | 24 | ||
25 | CACHED_CONFIGUREVARS += " \ | ||
26 | ac_cv_path_PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" \ | ||
27 | " | ||
28 | |||
24 | EXTRA_OECONF = " \ | 29 | EXTRA_OECONF = " \ |
25 | --disable-rpath \ | 30 | --disable-rpath \ |
26 | --enable-gles \ | 31 | --enable-gles \ |
@@ -30,6 +35,11 @@ EXTRA_OECONF = " \ | |||
30 | --enable-external-libraries \ | 35 | --enable-external-libraries \ |
31 | " | 36 | " |
32 | 37 | ||
38 | FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math" | ||
39 | BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}" | ||
40 | |||
41 | EXTRA_OECONF_append_armv7a = "--cpu=cortex-a8" | ||
42 | |||
33 | # for python modules | 43 | # for python modules |
34 | export HOST_SYS | 44 | export HOST_SYS |
35 | export BUILD_SYS | 45 | export BUILD_SYS |
@@ -45,19 +55,17 @@ do_configure() { | |||
45 | PARALLEL_MAKE = "" | 55 | PARALLEL_MAKE = "" |
46 | 56 | ||
47 | do_compile_prepend() { | 57 | do_compile_prepend() { |
48 | |||
49 | sed -i -e 's:-rpath \$(libdir)::g' lib/libid3tag/libid3tag/Makefile | ||
50 | |||
51 | for i in $(find . -name "Makefile") ; do | 58 | for i in $(find . -name "Makefile") ; do |
52 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir):-rpath ${STAGING_LIBDIR}:g' $i | 59 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' $i |
53 | done | 60 | done |
54 | 61 | ||
55 | for i in $(find . -name "*.mak*") ; do | 62 | for i in $(find . -name "*.mak*" -o -name "Makefile") ; do |
56 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir)::g' $i | 63 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir):-rpath ${libdir}:g' $i |
57 | done | 64 | done |
58 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir)::g' ${S}/Makefile | ||
59 | } | 65 | } |
60 | 66 | ||
67 | INSANE_SKIP_${PN} = "rpaths" | ||
68 | |||
61 | # on ARM architectures xbmc will use GLES which will make the regular wrapper fail, so start it directly | 69 | # on ARM architectures xbmc will use GLES which will make the regular wrapper fail, so start it directly |
62 | do_install_append_arm() { | 70 | do_install_append_arm() { |
63 | sed -i -e 's:Exec=xbmc:Exec=${libdir}/xbmc/xbmc.bin:g' ${D}${datadir}/applications/xbmc.desktop | 71 | sed -i -e 's:Exec=xbmc:Exec=${libdir}/xbmc/xbmc.bin:g' ${D}${datadir}/applications/xbmc.desktop |
@@ -71,7 +79,7 @@ RRECOMMENDS_${PN}_append = " libcec \ | |||
71 | python \ | 79 | python \ |
72 | python-lang \ | 80 | python-lang \ |
73 | python-re \ | 81 | python-re \ |
82 | python-netclient \ | ||
83 | libcurl \ | ||
74 | " | 84 | " |
75 | RRECOMMENDS_${PN}_append_libc-glibc = " glibc-charmap-ibm850 glibc-gconv-ibm850" | 85 | RRECOMMENDS_${PN}_append_libc-glibc = " glibc-charmap-ibm850 glibc-gconv-ibm850" |
76 | |||
77 | |||