2014-12-24 12:00:46 +01:00
|
|
|
# Template file for 'kodi'
|
|
|
|
pkgname=kodi
|
2015-10-20 09:08:17 +02:00
|
|
|
version=15.2
|
2015-11-28 09:23:32 +01:00
|
|
|
revision=3
|
2015-11-05 18:30:36 +01:00
|
|
|
patch_args="-Np1"
|
2015-07-23 22:07:45 +02:00
|
|
|
_codename="Isengard"
|
|
|
|
wrksrc="xbmc-${version}-${_codename}"
|
2014-12-24 12:00:46 +01:00
|
|
|
short_desc="A software media player and entertainment hub for digital media"
|
2015-04-10 09:16:30 +02:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2015-07-22 00:12:42 +02:00
|
|
|
homepage="http://www.kodi.tv/"
|
2014-12-24 12:00:46 +01:00
|
|
|
license="GPL-2"
|
2015-07-23 22:07:45 +02:00
|
|
|
distfiles="https://github.com/xbmc/xbmc/archive/${version}-${_codename}.tar.gz"
|
2015-10-20 09:08:17 +02:00
|
|
|
checksum=dd8aeb942e6de5d1488e243e1346cff3f6597e21b5131a3ba72ff5cc82037110
|
2014-12-24 12:00:46 +01:00
|
|
|
|
|
|
|
lib32disabled=yes
|
2015-11-05 18:30:36 +01:00
|
|
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
2014-12-24 12:00:46 +01:00
|
|
|
|
|
|
|
# XXX add support for afp.
|
|
|
|
hostmakedepends="
|
|
|
|
automake libtool pkg-config gperf cmake zip unzip nasm yasm python-devel
|
2015-11-05 18:30:36 +01:00
|
|
|
gettext-devel libltdl-devel curl"
|
2014-12-24 12:00:46 +01:00
|
|
|
makedepends="
|
2015-03-27 10:50:40 +01:00
|
|
|
libudev-devel pcre-devel expat-devel libpng-devel libjpeg-turbo-devel
|
2014-12-24 12:00:46 +01:00
|
|
|
libXrandr-devel avahi-libs-devel pulseaudio-devel samba-devel tiff-devel
|
2015-03-27 10:50:40 +01:00
|
|
|
libmysqlclient-devel libmpeg2-devel wavpack-devel zlib-devel lzo-devel
|
|
|
|
libXmu-devel glew-devel fribidi-devel sqlite-devel libcdio-devel freetype-devel
|
2015-07-22 00:12:42 +02:00
|
|
|
jasper-devel faac-devel SDL2_image-devel faad2-devel libmodplug-devel libressl-devel
|
2014-12-24 12:00:46 +01:00
|
|
|
libmad-devel fontconfig-devel libXinerama-devel libsamplerate-devel libmms-devel
|
|
|
|
enca-devel boost-devel libcurl-devel libva-devel libvdpau-devel libass-devel
|
2015-03-27 10:50:40 +01:00
|
|
|
libbluetooth-devel yajl-devel libplist-devel librtmp-devel tinyxml-devel
|
|
|
|
taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel ffmpeg-devel
|
2015-07-23 22:07:45 +02:00
|
|
|
giflib-devel libxslt-devel gnutls-devel libssh-devel libmicrohttpd-devel
|
|
|
|
libcec-devel"
|
2014-12-24 12:00:46 +01:00
|
|
|
# The following dependencies are dlopen(3)ed.
|
|
|
|
depends="libbluray libmad libvorbis libcurl libflac libmodplug libass libmpeg2
|
2015-03-12 11:21:10 +01:00
|
|
|
lame librtmp libnfs>=1.9.7 libplist>=1.12"
|
2015-01-11 15:36:30 +01:00
|
|
|
depends+=" glxinfo hicolor-icon-theme desktop-file-utils xdpyinfo"
|
2014-12-24 12:00:46 +01:00
|
|
|
|
2015-11-05 18:30:36 +01:00
|
|
|
# musl builds need generated addons (no java).
|
2015-11-05 19:00:27 +01:00
|
|
|
case "$XBPS_MACHINE" in
|
2015-11-05 18:30:36 +01:00
|
|
|
*-musl) _kodi_nojava=yes;;
|
|
|
|
*) hostmakedepends+=" swig openjdk-jre";;
|
|
|
|
esac
|
|
|
|
|
2015-03-14 11:31:01 +01:00
|
|
|
# XXX http://build.voidlinux.eu/builders/x86_64_builder/builds/10520/steps/shell_3/logs/stdio
|
|
|
|
CXXFLAGS="-fpermissive"
|
|
|
|
|
2014-12-24 12:00:46 +01:00
|
|
|
pre_configure() {
|
2015-11-05 18:30:36 +01:00
|
|
|
# Copy generated files to avoid requiring java.
|
|
|
|
if [ -n "${_kodi_nojava}" ]; then
|
|
|
|
$XBPS_FETCH_CMD http://repo.voidlinux.eu/distfiles/kodi-${version}-generated-addons.tar.xz
|
|
|
|
tar xf kodi-${version}-generated-addons.tar.xz -C ${wrksrc}
|
2015-11-28 09:58:37 +01:00
|
|
|
for f in xbmc/interfaces/python/generated/*.cpp; do
|
|
|
|
touch ${f/.cpp/.xml}
|
|
|
|
done
|
|
|
|
BOOTSTRAP_STANDALONE=1 make JAVA=/bin/true SWIG=/bin/true -f codegenerator.mk
|
2015-11-05 18:30:36 +01:00
|
|
|
else
|
|
|
|
. /etc/profile.d/10_openjdk.sh
|
|
|
|
BOOTSTRAP_STANDALONE=1 make -f codegenerator.mk
|
|
|
|
fi
|
|
|
|
BOOTSTRAP_STANDALONE=1 make -f bootstrap.mk
|
2014-12-24 12:00:46 +01:00
|
|
|
}
|
|
|
|
do_configure() {
|
|
|
|
./configure ${configure_args} \
|
|
|
|
--disable-debug --enable-optimizations --enable-gl \
|
|
|
|
--enable-sdl --enable-vdpau --enable-vaapi --enable-joystick \
|
|
|
|
--enable-xrandr --enable-rsxs --enable-projectm --enable-x11 \
|
|
|
|
--enable-pulse --enable-dvdcss --enable-optical-drive \
|
|
|
|
--enable-rtmp --enable-samba --enable-nfs --enable-ssh \
|
|
|
|
--enable-airplay --enable-ffmpeg-libvorbis --enable-udev \
|
2015-07-22 00:12:42 +02:00
|
|
|
--enable-avahi --enable-libbluray \
|
2015-02-06 16:34:44 +01:00
|
|
|
--enable-texturepacker --enable-external-libraries \
|
2015-11-05 18:30:36 +01:00
|
|
|
--with-ffmpeg=shared \
|
|
|
|
ac_cv_path_JAVA_EXE=/bin/true \
|
|
|
|
ac_cv_path_SWIG_EXE=/bin/true
|
2014-12-24 12:00:46 +01:00
|
|
|
}
|
|
|
|
do_build() {
|
2015-11-28 09:58:37 +01:00
|
|
|
for f in xbmc/interfaces/python/generated/*.cpp; do
|
|
|
|
touch ${f/.cpp/.xml}
|
|
|
|
done
|
2014-12-24 12:00:46 +01:00
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
vinstall tools/TexturePacker/TexturePacker 755 usr/lib/kodi
|
|
|
|
# remove unused stuff
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
find ${DESTDIR}/usr/lib -name "*.cmake" -delete
|
|
|
|
}
|