2014-12-24 12:00:46 +01:00
|
|
|
# Template file for 'kodi'
|
|
|
|
pkgname=kodi
|
2015-01-31 09:38:12 +01:00
|
|
|
version=14.1
|
2015-01-31 10:35:03 +01:00
|
|
|
revision=2
|
2014-12-24 12:00:46 +01:00
|
|
|
wrksrc="xbmc-${version}-Helix"
|
|
|
|
short_desc="A software media player and entertainment hub for digital media"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
homepage="http://www.kodi.tv"
|
|
|
|
license="GPL-2"
|
|
|
|
distfiles="https://github.com/xbmc/xbmc/archive/${version}-Helix.tar.gz"
|
2015-01-31 09:38:12 +01:00
|
|
|
checksum=a38059e292cf8523918834e49fcc2d688525ceb7951ddf7f5ee535f4147255d6
|
2014-12-24 12:00:46 +01: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="
|
|
|
|
libudev-devel pcre-devel>=8.30 expat-devel libpng-devel>=1.6 libjpeg-turbo-devel
|
|
|
|
libXrandr-devel avahi-libs-devel pulseaudio-devel samba-devel tiff-devel
|
|
|
|
libmysqlclient-devel>=5.5.27 libmpeg2-devel wavpack-devel zlib-devel lzo-devel
|
2015-01-31 10:35:03 +01:00
|
|
|
libXmu-devel glew-devel>=1.9.0 fribidi-devel sqlite-devel libcdio-devel>=0.93 freetype-devel
|
2015-01-22 12:09:32 +01:00
|
|
|
jasper-devel faac-devel SDL_image-devel faad2-devel libmodplug-devel libressl-devel>=2.1.3
|
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
|
|
|
|
libbluetooth-devel yajl-devel libplist-devel>=1.12 librtmp-devel tinyxml-devel
|
|
|
|
taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel
|
2015-01-29 18:53:38 +01:00
|
|
|
libcec-devel libxslt-devel gnutls-devel libssh-devel libmicrohttpd-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
|
|
|
|
lame librtmp libnfs 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
|
|
|
|
|
|
|
pre_configure() {
|
|
|
|
. /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 \
|
|
|
|
--enable-texturepacker --enable-external-libraries
|
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
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
|
|
|
|
}
|