diff options
| author | Khem Raj <raj.khem@gmail.com> | 2016-11-01 09:14:19 -0700 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-02-06 16:48:12 +0100 |
| commit | ab4369c5841e7f87bdc52aa8a67363c4e6524211 (patch) | |
| tree | d807b43dc2ae43d8ef2a5d9a465252138a773d90 /meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb | |
| parent | 5ecbf9bab404af0de7d0f058d1620f40dae0d2d8 (diff) | |
| download | meta-openembedded-ab4369c5841e7f87bdc52aa8a67363c4e6524211.tar.gz | |
kodi: Add krypton/17.0 recipe
remove obsoleted xbmc recipes
rename to recipes-mediacenter
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb')
| -rw-r--r-- | meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb | 179 |
1 files changed, 179 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb b/meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb new file mode 100644 index 0000000000..c9de5920d2 --- /dev/null +++ b/meta-multimedia/recipes-mediacenter/kodi/kodi_17.bb | |||
| @@ -0,0 +1,179 @@ | |||
| 1 | SUMMARY = "Kodi Media Center" | ||
| 2 | |||
| 3 | LICENSE = "GPLv2" | ||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=930e2a5f63425d8dd72dbd7391c43c46" | ||
| 5 | |||
| 6 | DEFAULT_PREFERENCE = "-1" | ||
| 7 | |||
| 8 | FILESPATH =. "${FILE_DIRNAME}/kodi-17:" | ||
| 9 | |||
| 10 | DEPENDS = " \ | ||
| 11 | cmake-native \ | ||
| 12 | curl-native \ | ||
| 13 | gperf-native \ | ||
| 14 | jsonschemabuilder-native \ | ||
| 15 | nasm-native \ | ||
| 16 | swig-native \ | ||
| 17 | yasm-native \ | ||
| 18 | zip-native \ | ||
| 19 | avahi \ | ||
| 20 | boost \ | ||
| 21 | bzip2 \ | ||
| 22 | curl \ | ||
| 23 | dcadec \ | ||
| 24 | enca \ | ||
| 25 | expat \ | ||
| 26 | faad2 \ | ||
| 27 | ffmpeg \ | ||
| 28 | fontconfig \ | ||
| 29 | fribidi \ | ||
| 30 | giflib \ | ||
| 31 | jasper \ | ||
| 32 | libass \ | ||
| 33 | libcdio \ | ||
| 34 | libcec \ | ||
| 35 | libmad \ | ||
| 36 | libmicrohttpd \ | ||
| 37 | libmms \ | ||
| 38 | libmms \ | ||
| 39 | libmodplug \ | ||
| 40 | libpcre \ | ||
| 41 | libplist \ | ||
| 42 | libsamplerate0 \ | ||
| 43 | libsdl-image \ | ||
| 44 | libsdl-mixer \ | ||
| 45 | libsquish \ | ||
| 46 | libssh \ | ||
| 47 | libtinyxml \ | ||
| 48 | libusb1 \ | ||
| 49 | libxslt \ | ||
| 50 | lzo \ | ||
| 51 | mpeg2dec \ | ||
| 52 | python \ | ||
| 53 | samba \ | ||
| 54 | sqlite3 \ | ||
| 55 | taglib \ | ||
| 56 | virtual/egl \ | ||
| 57 | virtual/libsdl \ | ||
| 58 | wavpack \ | ||
| 59 | yajl \ | ||
| 60 | zlib \ | ||
| 61 | ${@enable_glew(bb, d)} \ | ||
| 62 | " | ||
| 63 | |||
| 64 | PROVIDES = "xbmc" | ||
| 65 | |||
| 66 | SRCREV = "32c7788e7cce711be5b7f3893c82dddd79658268" | ||
| 67 | PV = "17.0+gitr${SRCPV}" | ||
| 68 | SRC_URI = "git://github.com/xbmc/xbmc.git;branch=master \ | ||
| 69 | file://0001-configure-don-t-try-to-run-stuff-to-find-tinyxml.patch \ | ||
| 70 | file://0002-handle-SIGTERM.patch \ | ||
| 71 | file://0003-add-support-to-read-frequency-output-if-using-intel-.patch \ | ||
| 72 | file://0004-Disable-DVD-support.patch \ | ||
| 73 | " | ||
| 74 | |||
| 75 | inherit autotools-brokensep gettext pythonnative | ||
| 76 | |||
| 77 | S = "${WORKDIR}/git" | ||
| 78 | |||
| 79 | # breaks compilation | ||
| 80 | ASNEEDED = "" | ||
| 81 | |||
| 82 | ACCEL ?= "" | ||
| 83 | ACCEL_x86 = "vaapi vdpau" | ||
| 84 | ACCEL_x86-64 = "vaapi vdpau" | ||
| 85 | |||
| 86 | PACKAGECONFIG ??= "${ACCEL}" | ||
| 87 | PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}" | ||
| 88 | PACKAGECONFIG_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', ' opengl', ' openglesv2', d)}" | ||
| 89 | |||
| 90 | PACKAGECONFIG[opengl] = "--enable-gl,--enable-gles," | ||
| 91 | PACKAGECONFIG[openglesv2] = "--enable-gles,--enable-gl,virtual/egl" | ||
| 92 | PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva" | ||
| 93 | PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau" | ||
| 94 | PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5" | ||
| 95 | PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,libxinerama libxmu libxrandr libxtst" | ||
| 96 | PACKAGECONFIG[pulseaudio] = "--enable-pulse,--disable-pulse,pulseaudio" | ||
| 97 | |||
| 98 | EXTRA_OECONF = " \ | ||
| 99 | --disable-debug \ | ||
| 100 | --disable-libcap \ | ||
| 101 | --disable-ccache \ | ||
| 102 | --disable-mid \ | ||
| 103 | --enable-libusb \ | ||
| 104 | --enable-alsa \ | ||
| 105 | --enable-airplay \ | ||
| 106 | --disable-optical-drive \ | ||
| 107 | --with-ffmpeg=shared \ | ||
| 108 | --enable-texturepacker=no \ | ||
| 109 | " | ||
| 110 | |||
| 111 | FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math" | ||
| 112 | FULL_OPTIMIZATION_armv7ve = "-fexpensive-optimizations -fomit-frame-pointer -O4 -ffast-math" | ||
| 113 | BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}" | ||
| 114 | |||
| 115 | # for python modules | ||
| 116 | export HOST_SYS | ||
| 117 | export BUILD_SYS | ||
| 118 | export STAGING_LIBDIR | ||
| 119 | export STAGING_INCDIR | ||
| 120 | export PYTHON_DIR | ||
| 121 | |||
| 122 | def enable_glew(bb, d): | ||
| 123 | if bb.utils.contains('PACKAGECONFIG', 'x11', True, False, d) and bb.utils.contains('DISTRO_FEATURES', 'opengl', True, False, d): | ||
| 124 | return "glew" | ||
| 125 | return "" | ||
| 126 | |||
| 127 | do_configure() { | ||
| 128 | ( for i in $(find ${S} -name "configure.*" ) ; do | ||
| 129 | cd $(dirname $i) && gnu-configize --force || true | ||
| 130 | done ) | ||
| 131 | make -C tools/depends/target/crossguid PREFIX=${STAGING_DIR_HOST}${prefix} | ||
| 132 | |||
| 133 | BOOTSTRAP_STANDALONE=1 make -f bootstrap.mk JSON_BUILDER="${STAGING_BINDIR_NATIVE}/JsonSchemaBuilder" | ||
| 134 | BOOTSTRAP_STANDALONE=1 make -f codegenerator.mk JSON_BUILDER="${STAGING_BINDIR_NATIVE}/JsonSchemaBuilder" | ||
| 135 | oe_runconf | ||
| 136 | } | ||
| 137 | |||
| 138 | do_compile_prepend() { | ||
| 139 | for i in $(find . -name "Makefile") ; do | ||
| 140 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' $i | ||
| 141 | done | ||
| 142 | |||
| 143 | for i in $(find . -name "*.mak*" -o -name "Makefile") ; do | ||
| 144 | sed -i -e 's:I/usr/include:I${STAGING_INCDIR}:g' -e 's:-rpath \$(libdir):-rpath ${libdir}:g' $i | ||
| 145 | done | ||
| 146 | } | ||
| 147 | |||
| 148 | INSANE_SKIP_${PN} = "rpaths" | ||
| 149 | |||
| 150 | FILES_${PN} += "${datadir}/xsessions ${datadir}/icons ${libdir}/xbmc ${datadir}/xbmc" | ||
| 151 | FILES_${PN}-dbg += "${libdir}/kodi/.debug ${libdir}/kodi/*/.debug ${libdir}/kodi/*/*/.debug ${libdir}/kodi/*/*/*/.debug" | ||
| 152 | |||
| 153 | # kodi uses some kind of dlopen() method for libcec so we need to add it manually | ||
| 154 | # OpenGL builds need glxinfo, that's in mesa-demos | ||
| 155 | RRECOMMENDS_${PN}_append = " libcec \ | ||
| 156 | python \ | ||
| 157 | python-lang \ | ||
| 158 | python-re \ | ||
| 159 | python-netclient \ | ||
| 160 | python-html \ | ||
| 161 | python-difflib \ | ||
| 162 | python-json \ | ||
| 163 | python-zlib \ | ||
| 164 | python-shell \ | ||
| 165 | python-sqlite3 \ | ||
| 166 | python-compression \ | ||
| 167 | libcurl \ | ||
| 168 | ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'xrandr xdpyinfo', '', d)} \ | ||
| 169 | " | ||
| 170 | RRECOMMENDS_${PN}_append_libc-glibc = " glibc-charmap-ibm850 \ | ||
| 171 | glibc-gconv-ibm850 \ | ||
| 172 | glibc-gconv-unicode \ | ||
| 173 | glibc-gconv-utf-32 \ | ||
| 174 | glibc-charmap-utf-8 \ | ||
| 175 | glibc-localedata-en-us \ | ||
| 176 | " | ||
| 177 | |||
| 178 | RPROVIDES_${PN} += "xbmc" | ||
| 179 | |||
