[vuplus-wifi-util] fix default ccode
[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 = "r1"
16
17 SRC_URI = " \
18         http://code.vuplus.com/download/release/kodi/kodi-${PV}-Krypton.tar.gz;name=Src \
19         http://code.vuplus.com/download/release/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         libnfs \
79         kodiegl \
80         "
81
82 RDEPENDS_${PN} = "python"
83 RDEPENDS_${PN} += "\
84         python-distutils \
85         python-subprocess \
86         python-robotparser \
87         python-mechanize \
88         python-threading \
89         python-shell \
90         python-zlib \
91         python-sqlite3 \
92         python-json \
93         python-xml \
94         python-html \
95         python-netserver \
96         python-misc \
97         python-pygobject \
98         python-pygobject-lib \
99         python-textutils \
100         python-simplejson \
101         python-xmlrpc   \
102         python-pprint \
103         python-difflib \
104         python-email \
105         python-compression \
106         python-compile \
107         python-compiler \
108         python-numbers \
109         python-pkgutil \
110         nfs-utils-client \
111         libshairport \
112         glibc-gconv-utf-32 \
113         xz \
114         tiff \
115         yajl \
116         libxslt \
117         libupnp \
118         libplist \
119         librtmp \
120         libbluray \
121         libnfs \
122         libtinyxml \
123         alsa-lib \
124         shairplay \
125         kodiegl \
126 "
127
128 inherit autotools-brokensep gettext pythonnative
129
130 ACCEL ?= ""
131 ACCEL_x86 = "vaapi vdpau"
132 ACCEL_x86-64 = "vaapi vdpau"
133
134 PACKAGECONFIG ??= "${ACCEL}"
135 PACKAGECONFIG_append += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', ' x11', '', d)}"
136 PACKAGECONFIG_append += "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', ' opengl', ' openglesv2', d)}"
137
138 PACKAGECONFIG[opengl] = "--enable-gl,--enable-gles,"
139 PACKAGECONFIG[openglesv2] = "--enable-gles,--enable-gl"
140 PACKAGECONFIG[vaapi] = "--enable-vaapi,--disable-vaapi,libva"
141 PACKAGECONFIG[vdpau] = "--enable-vdpau,--disable-vdpau,libvdpau"
142 PACKAGECONFIG[mysql] = "--enable-mysql,--disable-mysql,mysql5"
143 PACKAGECONFIG[x11] = "--enable-x11,--disable-x11,libxinerama libxmu libxrandr libxtst"
144 PACKAGECONFIG[lcms] = "--enable-lcms2,--disable-lcms2,lcms"
145
146 EXTRA_OECONF_append_rpi = " --disable-openmax --enable-player=omxplayer --with-platform=raspberry-pi2"
147 EXTRA_OECONF_remove_aarch64 = "--with-platform=raspberry-pi2"
148 LDFLAGS_append_rpi = " -lvchostif "
149
150 S = "${WORKDIR}/xbmc-${PV}-${BRANCH}"
151
152 EXTRA_OECONF = " \
153         --disable-debug \
154         --disable-libcap \
155         --disable-ccache \
156         --disable-mid \
157         --enable-libusb \
158         --disable-alsa \
159         --enable-airplay \
160         --disable-optical-drive \
161         --enable-texturepacker=no \
162         --enable-optimizations \
163         --disable-lirc \
164         --disable-dbus \
165         --disable-gtest \
166         --enable-libusb \
167         --disable-ssh \
168         --enable-pulse=no \
169         --disable-libcec \
170         "
171
172 FULL_OPTIMIZATION_armv7a = "-fexpensive-optimizations -fomit-frame-pointer -O3 -ffast-math"
173 FULL_OPTIMIZATION_armv7ve = "-fexpensive-optimizations -fomit-frame-pointer -O3 -ffast-math"
174 BUILD_OPTIMIZATION = "${FULL_OPTIMIZATION}"
175
176 EXTRA_OECONF_append = " LIBTOOL=${STAGING_BINDIR_CROSS}/${HOST_SYS}-libtool"
177
178 # for python modules
179 export HOST_SYS
180 export BUILD_SYS
181 export STAGING_LIBDIR
182 export STAGING_INCDIR
183 export PYTHON_DIR
184 export PARALLEL_MAKE
185
186 do_configure() {
187         cp -af ${WORKDIR}/xbmc-${PV}-Util/ffmpeg-3.1.6-Krypton.tar.gz ${S}/tools/depends/target/ffmpeg/
188         cp -af ${WORKDIR}/xbmc-${PV}-Util/crossguid-8f399e8bd4.tar.gz ${S}/tools/depends/target/crossguid/
189         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdcss-2f12236bc1c92f73c21e973363f79eb300de603f.tar.gz ${S}/tools/depends/target/libdvdcss/
190         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdnav-981488f7f27554b103cca10c1fbeba027396c94a.tar.gz ${S}/tools/depends/target/libdvdnav/
191         cp -af ${WORKDIR}/xbmc-${PV}-Util/libdvdread-17d99db97e7b8f23077b342369d3c22a6250affd.tar.gz ${S}/tools/depends/target/libdvdread/
192
193         ( for i in $(find ${S} -name "configure.*" ) ; do
194                 cd $(dirname $i) && gnu-configize --force || true
195         done )
196         make -C tools/depends/native/JsonSchemaBuilder
197         make -C tools/depends/target/crossguid PREFIX=${STAGING_DIR_HOST}${prefix} BASE_URL=http://ftp.vim.org/mediaplayer/xbmc/build-deps/sources
198         BOOTSTRAP_STANDALONE=1 make -f bootstrap.mk JSON_BUILDER="${S}/tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder"
199         BOOTSTRAP_STANDALONE=1 make -f codegenerator.mk JSON_BUILDER="${S}/tools/depends/native/JsonSchemaBuilder/bin/JsonSchemaBuilder"
200         oe_runconf
201 }
202
203 INSANE_SKIP_${PN} = "rpaths"
204
205 FILES_${PN} = "${libdir}/kodi ${libdir}/xbmc"
206 FILES_${PN} += "${bindir}/kodi ${bindir}/xbmc"
207 FILES_${PN} += "${datadir}/icons ${datadir}/kodi ${datadir}/xbmc"
208 FILES_${PN} += "${bindir}/kodi-standalone ${bindir}/xbmc-standalone ${datadir}/xsessions"
209 FILES_${PN}-dev = "${includedir}"
210 FILES_${PN}-dbg += "${libdir}/kodi/.debug ${libdir}/kodi/*/.debug ${libdir}/kodi/*/*/.debug ${libdir}/kodi/*/*/*/.debug ${datadir}/applications"
211
212 # xbmc uses some kind of dlopen() method for libcec so we need to add it manually
213 # OpenGL builds need glxinfo, that's in mesa-demos
214 RRECOMMENDS_${PN}_append = " \
215         libcec \
216         python \
217         python-lang \
218         python-re \
219         python-netclient \
220         python-html \
221         python-difflib \
222         python-json \
223         python-zlib \
224         python-shell \
225         python-sqlite3 \
226         python-compression \
227         libcurl \
228         lsb \
229         os-release \
230         ${@bb.utils.contains('PACKAGECONFIG', 'x11', 'xrandr xdpyinfo', '', d)} \
231         "
232
233 RRECOMMENDS_${PN}_append_libc-glibc = " \
234         glibc-charmap-ibm850 \
235         glibc-gconv-ibm850 \
236         glibc-gconv-unicode \
237         glibc-gconv-utf-32 \
238         glibc-charmap-utf-8 \
239         glibc-localedata-en-us \
240         "