diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-10 03:20:04 +0200 |
commit | 1b8dfe266937a37a4c642f96ceb2347bf4c00a17 (patch) | |
tree | 0c6aab146bb3c82efd9c7846a9a4e70dcb0ec84f /meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb | |
download | meta-openembedded-daisy-140929.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb')
-rw-r--r-- | meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb new file mode 100644 index 0000000000..5c93284dab --- /dev/null +++ b/meta-multimedia/recipes-mediacentre/xbmc/xbmc_git.bb | |||
@@ -0,0 +1,96 @@ | |||
1 | SUMMARY = "XBMC Media Center" | ||
2 | |||
3 | LICENSE = "GPLv2" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=6eb631b6da7fdb01508a80213ffc35ff" | ||
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 libtinyxml libmad" | ||
7 | #require recipes/egl/egl.inc | ||
8 | |||
9 | |||
10 | SRCREV = "82388d55dae79cbb2e486e307e23202e76a43efa" | ||
11 | |||
12 | PV = "11.0+gitr${SRCPV}" | ||
13 | PR = "r14" | ||
14 | SRC_URI = "git://github.com/xbmc/xbmc.git;branch=Eden \ | ||
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 \ | ||
17 | file://0003-Revert-fixed-ios-Add-memory-barriers-to-cas-assembly.patch \ | ||
18 | file://0004-configure-cope-with-ld-is-gold-DISTRO_FEATURE.patch \ | ||
19 | file://configure.in-Avoid-running-code.patch \ | ||
20 | " | ||
21 | |||
22 | inherit autotools gettext python-dir | ||
23 | |||
24 | S = "${WORKDIR}/git" | ||
25 | |||
26 | # breaks compilation | ||
27 | CCACHE = "" | ||
28 | |||
29 | CACHED_CONFIGUREVARS += " \ | ||
30 | ac_cv_path_PYTHON="${STAGING_BINDIR_NATIVE}/python-native/python" \ | ||
31 | " | ||
32 | |||
33 | PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'opengl', 'opengl', 'openglesv2', d)}" | ||
34 | PACKAGECONFIG[opengl] = "--enable-gl,--enable-gles,glew" | ||
35 | PACKAGECONFIG[openglesv2] = "--enable-gles,--enable-gl," | ||
36 | |||
37 | EXTRA_OECONF = " \ | ||
38 | --disable-rpath \ | ||
39 | --enable-libusb \ | ||
40 | --enable-airplay \ | ||
41 | --disable-optical-drive \ | ||
42 | --enable-external-libraries \ | ||
43 | ${@base_contains('DISTRO_FEATURES', 'opengl', '--enable-gl', '--enable-gles', d)} \ | ||
44 | " | ||
45 | |||
46 | FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math" | ||
47 | BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}" | ||
48 | |||
49 | EXTRA_OECONF_append_armv7a = "--cpu=cortex-a8" | ||
50 | |||
51 | # for python modules | ||
52 | export HOST_SYS | ||
53 | export BUILD_SYS | ||
54 | export STAGING_LIBDIR | ||
55 | export STAGING_INCDIR | ||
56 | export PYTHON_DIR | ||
57 | |||
58 | do_configure() { | ||
59 | sh bootstrap | ||
60 | oe_runconf | ||
61 | } | ||
62 | |||
63 | PARALLEL_MAKE = "" | ||
64 | |||
65 | do_compile_prepend() { | ||
66 | for i in $(find . -name "Makefile") ; do | ||
67 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' $i | ||
68 | done | ||
69 | |||
70 | for i in $(find . -name "*.mak*" -o -name "Makefile") ; do | ||
71 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir):-rpath ${libdir}:g' $i | ||
72 | done | ||
73 | } | ||
74 | |||
75 | INSANE_SKIP_${PN} = "rpaths" | ||
76 | |||
77 | # on ARM architectures xbmc will use GLES which will make the regular wrapper fail, so start it directly | ||
78 | do_install_append_arm() { | ||
79 | sed -i -e 's:Exec=xbmc:Exec=${libdir}/xbmc/xbmc.bin:g' ${D}${datadir}/applications/xbmc.desktop | ||
80 | } | ||
81 | |||
82 | FILES_${PN} += "${datadir}/xsessions ${datadir}/icons" | ||
83 | FILES_${PN}-dbg += "${libdir}/xbmc/.debug ${libdir}/xbmc/*/.debug ${libdir}/xbmc/*/*/.debug ${libdir}/xbmc/*/*/*/.debug" | ||
84 | |||
85 | # xbmc uses some kind of dlopen() method for libcec so we need to add it manually | ||
86 | # OpenGL builds need glxinfo, that's in mesa-demos | ||
87 | RRECOMMENDS_${PN}_append = " libcec \ | ||
88 | python \ | ||
89 | python-lang \ | ||
90 | python-re \ | ||
91 | python-netclient \ | ||
92 | libcurl \ | ||
93 | xdpyinfo \ | ||
94 | ${@base_contains('DISTRO_FEATURES', 'opengl', 'mesa-demos', '', d)} \ | ||
95 | " | ||
96 | RRECOMMENDS_${PN}_append_libc-glibc = " glibc-charmap-ibm850 glibc-gconv-ibm850" | ||