update drivers(duo2, solo2, solose, zero)
[vuplus_openvuplus_3.0] / meta-bsp / recipes-multimedia / kodi / kodi-17.x.inc
1 SUMMARY = "Kodi Media Center"
2
3 LICENSE = "GPLv2"
4 LIC_FILES_CHKSUM = "file://LICENSE.GPL;md5=930e2a5f63425d8dd72dbd7391c43c46"
5
6 DEFAULT_PREFERENCE = "-1"
7 #FILESPATH =. "${FILE_DIRNAME}/kodi-${PV}:"
8 PACKAGE_ARCH = "${MACHINE}"
9
10 PROVIDES += "kodi"
11 RPROVIDES_${PN} += "kodi"
12
13 BRANCH = "Krypton"
14 PV = "17.0"
15 PR = "r0"
16
17 SRC_URI = " \
18         https://github.com/xbmc/xbmc/archive/${PV}-Krypton.tar.gz;name=Src \
19         http://archive.vuplus.com/download/build_support/kodi/xbmc-${PV}-Util.tar.gz;name=Util \
20         file://xbmc-${PV}-vuplus-patch.diff \
21         "
22
23 SRC_URI[Src.md5sum] = "86ebb2f148090f12beb1e573dfd55e53"
24 SRC_URI[Src.sha256sum] = "4bfffa2493973ae15ab1d922632c09a2583908d6140bc4f58ec8f9314e4f6545"     
25
26 SRC_URI[Util.md5sum] = "8f1b23f87d8e64c9b59cf49ff23652e0"
27 SRC_URI[Util.sha256sum] = "2bc48ecd8ea2886ca13b483066dee16e5390e1a6733adc00b719b7f2d9e810f4"
28
29 DEPENDS = " \
30         libgles \
31         cmake-native \
32         curl-native \
33         gperf-native \
34         nasm-native \
35         swig-native \
36         yasm-native \
37         zip-native \
38         avahi \
39         boost \
40         bzip2 \
41         curl \
42         libdcadec \
43         enca \
44         expat \
45         faad2 \
46         ffmpeg \
47         fontconfig \
48         fribidi \
49         giflib \
50         jasper \
51         libass \
52         libcdio \
53         libcec \
54         libmad \
55         libmicrohttpd \
56         libmms \
57         libmodplug \
58         libpcre \
59         libplist \
60         libsamplerate0 \
61         libsdl-image \
62         libsdl-mixer \
63         libsquish \
64         libssh \
65         libtinyxml \
66         libusb1 \
67         libxslt \
68         lzo \
69         mpeg2dec \
70         python \
71         samba \
72         sqlite3 \
73         taglib \
74         virtual/libsdl \
75         wavpack \
76         yajl \
77         zlib \
78         kodiegl \
79         "
80
81 RDEPENDS_${PN} = "python"
82 RDEPENDS_${PN} += "\
83         python-distutils \
84         python-subprocess \
85         python-robotparser \
86         python-mechanize \
87         python-threading \
88         python-shell \
89         python-zlib \
90         python-sqlite3 \
91         python-json \
92         python-xml \
93         python-html \
94         python-netserver \
95         python-misc \
96         python-pygobject \
97         python-pygobject-lib \
98         python-textutils \
99         python-simplejson \
100         python-xmlrpc   \
101         python-pprint \
102         python-difflib \
103         python-email \
104         python-compression \
105         python-compile \
106         python-compiler \
107         python-numbers \
108         python-pkgutil \
109         nfs-utils-client \
110         libshairport \
111         glibc-gconv-utf-32 \
112         xz \
113         tiff \
114         yajl \
115         libxslt \
116         libupnp \
117         libplist \
118         librtmp \
119         libbluray \
120         libnfs \
121         libtinyxml \
122         alsa-lib \
123         shairplay \
124         kodiegl \
125 "
126
127 inherit autotools-brokensep gettext pythonnative
128
129 ACCEL ?= ""
130 ACCEL_x86 = "vaapi vdpau"
131 ACCEL_x86-64 = "vaapi vdpau"
132
133 PACKAGECONFIG ??= "${ACCEL}"
134 PACKAGECONFIG_append += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"
135 PACKAGECONFIG_append += "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', ' opengl', ' openglesv2', d)}"
136
137 PACKAGECONFIG[opengl] = "--enable-gl,--enable-gles,"
138 PACKAGECONFIG[openglesv2] = "--enable-gles,--enable-gl"
139 PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva"
140 PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
141 PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5"
142 PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,libxinerama libxmu libxrandr libxtst"
143 PACKAGECONFIG[lcms] = "--enable-lcms2,--disable-lcms2,lcms"
144
145 EXTRA_OECONF_append_rpi = " --disable-openmax --enable-player=omxplayer --with-platform=raspberry-pi2"
146 EXTRA_OECONF_remove_aarch64 = "--with-platform=raspberry-pi2"
147 LDFLAGS_append_rpi = " -lvchostif "
148
149 S = "${WORKDIR}/xbmc-${PV}-${BRANCH}"
150
151 EXTRA_OECONF = " \
152         --disable-debug \
153         --disable-libcap \
154         --disable-ccache \
155         --disable-mid \
156         --enable-libusb \
157         --disable-alsa \
158         --enable-airplay \
159         --disable-optical-drive \
160         --enable-texturepacker=no \
161         --enable-optimizations \
162         --disable-lirc \
163         --disable-dbus \
164         --disable-gtest \
165         --enable-libusb \
166         --disable-ssh \
167         --enable-pulse=no \
168         --disable-libcec \
169         "
170
171 FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O3 -ffast-math"
172 FULL_OPTIMIZATION_armv7ve = "-fexpensive-optimizations -fomit-frame-pointer -O3 -ffast-math"
173 BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
174
175 EXTRA_OECONF_append = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
176
177 # for python modules
178 export HOST_SYS
179 export BUILD_SYS
180 export STAGING_LIBDIR
181 export STAGING_INCDIR
182 export PYTHON_DIR
183 export PARALLEL_MAKE
184
185 do_configure() {
186         cp -af ${WORKDIR}/xbmc-${PV}-Util/ffmpeg-3.1.6-Krypton.tar.gz ${S}/tools/depends/target/ffmpeg/
187         cp -af ${WORKDIR}/xbmc-${PV}-Util/crossguid-8f399e8bd4.tar.gz ${S}/tools/depends/target/crossguid/
188         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdcss-2f12236bc1c92f73c21e973363f79eb300de603f.tar.gz ${S}/tools/depends/target/libdvdcss/
189         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdnav-981488f7f27554b103cca10c1fbeba027396c94a.tar.gz ${S}/tools/depends/target/libdvdnav/
190         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdread-17d99db97e7b8f23077b342369d3c22a6250affd.tar.gz ${S}/tools/depends/target/libdvdread/
191
192         ( for i in $(find ${S} -name "configure.*" ) ; do
193                 cd $(dirname $i) && gnu-configize --force || true
194         done )
195         make -C tools/depends/native/JsonSchemaBuilder
196         make -C tools/depends/target/crossguid PREFIX=${STAGING_DIR_HOST}${prefix} BASE_URL=http://ftp.vim.org/mediaplayer/xbmc/build-deps/sources
197         BOOTSTRAP_STANDALONE=1 make -f bootstrap.mk JSON_BUILDER="${S}/tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder"
198         BOOTSTRAP_STANDALONE=1 make -f codegenerator.mk JSON_BUILDER="${S}/tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder"
199         oe_runconf
200 }
201
202 INSANE_SKIP_${PN} = "rpaths"
203
204 FILES_${PN} = "${libdir}/kodi ${libdir}/xbmc"
205 FILES_${PN} += "${bindir}/kodi ${bindir}/xbmc"
206 FILES_${PN} += "${datadir}/icons ${datadir}/kodi ${datadir}/xbmc"
207 FILES_${PN} += "${bindir}/kodi-standalone ${bindir}/xbmc-standalone ${datadir}/xsessions"
208 FILES_${PN}-dev = "${includedir}"
209 FILES_${PN}-dbg += "${libdir}/kodi/.debug ${libdir}/kodi/*/.debug ${libdir}/kodi/*/*/.debug ${libdir}/kodi/*/*/*/.debug ${datadir}/applications"
210
211 # xbmc uses some kind of dlopen() method for libcec so we need to add it manually
212 # OpenGL builds need glxinfo, that's in mesa-demos
213 RRECOMMENDS_${PN}_append = " \
214         libcec \
215         python \
216         python-lang \
217         python-re \
218         python-netclient \
219         python-html \
220         python-difflib \
221         python-json \
222         python-zlib \
223         python-shell \
224         python-sqlite3 \
225         python-compression \
226         libcurl \
227         lsb \
228         os-release \
229         ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'xrandr xdpyinfo', '', d)} \
230         "
231
232 RRECOMMENDS_${PN}_append_libc-glibc = " \
233         glibc-charmap-ibm850 \
234         glibc-gconv-ibm850 \
235         glibc-gconv-unicode \
236         glibc-gconv-utf-32 \
237         glibc-charmap-utf-8 \
238         glibc-localedata-en-us \
239         "