2014-12-24 11:00:46 +00:00
|
|
|
# Template file for 'kodi'
|
|
|
|
pkgname=kodi
|
2015-03-29 04:23:03 +00:00
|
|
|
version=14.2
|
|
|
|
revision=1
|
2014-12-24 11:00:46 +00:00
|
|
|
wrksrc="xbmc-${version}-Helix"
|
|
|
|
short_desc="A software media player and entertainment hub for digital media"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2014-12-24 11:00:46 +00:00
|
|
|
homepage="http://www.kodi.tv"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="https://github.com/xbmc/xbmc/archive/${version}-Helix.tar.gz"
|
2015-03-29 04:23:03 +00:00
|
|
|
checksum=d9cb8590430a925fb789a5beb4da2695cdcd2d2500dd31126f3b77b31aa267f4
|
2014-12-24 11:00:46 +00:00
|
|
|
|
|
|
|
lib32disabled=yes
|
|
|
|
broken_as_needed=yes
|
|
|
|
only_for_archs="i686 x86_64"
|
|
|
|
|
|
|
|
provides="xbmc-${version}_${revision}"
|
|
|
|
replaces="xbmc>=0"
|
|
|
|
|
|
|
|
# XXX add support for afp.
|
|
|
|
hostmakedepends="
|
|
|
|
automake libtool pkg-config gperf cmake zip unzip nasm yasm python-devel
|
|
|
|
swig openjdk-jre gettext-devel libltdl-devel curl"
|
|
|
|
makedepends="
|
2015-03-27 09:50:40 +00:00
|
|
|
libudev-devel pcre-devel expat-devel libpng-devel libjpeg-turbo-devel
|
2014-12-24 11:00:46 +00:00
|
|
|
libXrandr-devel avahi-libs-devel pulseaudio-devel samba-devel tiff-devel
|
2015-03-27 09:50:40 +00:00
|
|
|
libmysqlclient-devel libmpeg2-devel wavpack-devel zlib-devel lzo-devel
|
|
|
|
libXmu-devel glew-devel fribidi-devel sqlite-devel libcdio-devel freetype-devel
|
|
|
|
jasper-devel faac-devel SDL_image-devel faad2-devel libmodplug-devel libressl-devel
|
2014-12-24 11:00:46 +00: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 09:50:40 +00:00
|
|
|
libbluetooth-devel yajl-devel libplist-devel librtmp-devel tinyxml-devel
|
|
|
|
taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel ffmpeg-devel
|
2015-01-29 17:53:38 +00:00
|
|
|
libcec-devel libxslt-devel gnutls-devel libssh-devel libmicrohttpd-devel"
|
2014-12-24 11:00:46 +00:00
|
|
|
# The following dependencies are dlopen(3)ed.
|
|
|
|
depends="libbluray libmad libvorbis libcurl libflac libmodplug libass libmpeg2
|
2015-03-12 10:21:10 +00:00
|
|
|
lame librtmp libnfs>=1.9.7 libplist>=1.12"
|
2015-01-11 14:36:30 +00:00
|
|
|
depends+=" glxinfo hicolor-icon-theme desktop-file-utils xdpyinfo"
|
2014-12-24 11:00:46 +00:00
|
|
|
|
2015-03-14 10:31:01 +00:00
|
|
|
# XXX http://build.voidlinux.eu/builders/x86_64_builder/builds/10520/steps/shell_3/logs/stdio
|
|
|
|
CXXFLAGS="-fpermissive"
|
|
|
|
|
2014-12-24 11:00:46 +00:00
|
|
|
pre_configure() {
|
2015-03-29 04:23:03 +00:00
|
|
|
# remove lsb_release dependency
|
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:echo Void:' xbmc/utils/SystemInfo.cpp
|
|
|
|
|
2014-12-24 11:00:46 +00:00
|
|
|
. /etc/profile.d/10_openjdk.sh
|
|
|
|
./bootstrap
|
|
|
|
}
|
|
|
|
do_configure() {
|
|
|
|
. /etc/profile.d/10_openjdk.sh
|
|
|
|
./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 \
|
|
|
|
--enable-avahi --enable-libcec --enable-libbluray \
|
2015-02-06 15:34:44 +00:00
|
|
|
--enable-texturepacker --enable-external-libraries \
|
|
|
|
--with-ffmpeg=shared
|
2014-12-24 11:00:46 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
vinstall tools/TexturePacker/TexturePacker 755 usr/lib/kodi
|
2015-03-29 04:23:03 +00:00
|
|
|
# lsb_release fix
|
|
|
|
sed -i -e 's/which lsb_release > \/dev\/null/\[ -f \/etc\/os-release ]/g' ${DESTDIR}/usr/bin/kodi
|
|
|
|
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/echo Void/g" ${DESTDIR}/usr/bin/kodi
|
2014-12-24 11:00:46 +00:00
|
|
|
# remove unused stuff
|
|
|
|
rm -rf ${DESTDIR}/usr/include
|
|
|
|
find ${DESTDIR}/usr/lib -name "*.cmake" -delete
|
|
|
|
}
|