2010-12-14 22:47:44 +01:00
|
|
|
# Template file for 'xbmc'
|
|
|
|
pkgname=xbmc
|
2014-08-23 16:55:34 +02:00
|
|
|
version=13.2
|
2014-10-04 19:34:06 +02:00
|
|
|
revision=2
|
2014-05-05 14:14:58 +02:00
|
|
|
wrksrc="xbmc-${version}-Gotham"
|
2010-12-14 22:47:44 +01:00
|
|
|
short_desc="XBMC Media Center"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-05-30 14:54:51 +02:00
|
|
|
homepage="http://www.xbmc.org"
|
|
|
|
license="GPL-2"
|
2014-06-08 09:05:35 +02:00
|
|
|
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-${version}.tar.gz"
|
2014-08-23 16:55:34 +02:00
|
|
|
checksum=acbf5dffa3034a3406240ee3cf81e721386cd383d23d056ddde1f769e050e585
|
2010-12-14 22:47:44 +01:00
|
|
|
|
2014-04-01 15:45:13 +02:00
|
|
|
lib32disabled=yes
|
2012-10-09 11:18:16 +02:00
|
|
|
broken_as_needed=yes
|
2014-04-01 15:49:37 +02:00
|
|
|
only_for_archs="i686 x86_64"
|
2013-01-29 21:38:23 +01:00
|
|
|
|
2014-06-08 09:05:35 +02:00
|
|
|
# XXX add support for webserver (microhttpd) and afp.
|
2013-12-28 20:57:03 +01:00
|
|
|
hostmakedepends="
|
|
|
|
automake libtool pkg-config gperf cmake zip unzip nasm yasm python-devel
|
2014-10-04 21:01:31 +02:00
|
|
|
swig openjdk-jre gettext-devel libltdl-devel"
|
2013-10-03 16:32:52 +02:00
|
|
|
makedepends="
|
2014-09-06 12:42:09 +02:00
|
|
|
libudev-devel pcre-devel>=8.30 expat-devel libpng-devel>=1.6 libjpeg-turbo-devel
|
2013-10-03 16:32:52 +02:00
|
|
|
libXrandr-devel avahi-libs-devel pulseaudio-devel SDL_mixer-devel samba-devel tiff-devel
|
2012-10-09 11:18:16 +02:00
|
|
|
libmysqlclient-devel>=5.5.27 libmpeg2-devel wavpack-devel zlib-devel lzo-devel
|
2013-01-29 20:58:22 +01:00
|
|
|
libXmu-devel glew-devel>=1.9.0 fribidi-devel sqlite-devel libcdio-devel freetype-devel
|
2014-07-16 00:54:16 +02:00
|
|
|
jasper-devel faac-devel SDL_image-devel faad2-devel libmodplug-devel libressl-devel
|
2012-10-09 11:18:16 +02:00
|
|
|
libmad-devel fontconfig-devel libXinerama-devel libsamplerate-devel libmms-devel
|
|
|
|
enca-devel boost-devel libcurl-devel libva-devel libvdpau-devel libass-devel
|
2013-01-29 20:58:22 +01:00
|
|
|
libbluetooth-devel yajl-devel libplist-devel librtmp-devel tinyxml-devel
|
2014-08-23 16:55:34 +02:00
|
|
|
taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel
|
2014-05-05 14:14:58 +02:00
|
|
|
libcec-devel libxslt-devel gnutls-devel libssh-devel"
|
2014-01-01 16:10:11 +01:00
|
|
|
# The following dependencies are dlopen(3)ed.
|
2014-05-05 14:14:58 +02:00
|
|
|
depends="libbluray libmad libogg libcurl libflac libmodplug libass libmpeg2
|
|
|
|
lame librtmp libnfs libplist libssh"
|
|
|
|
depends+=" glxinfo hicolor-icon-theme desktop-file-utils"
|
2013-12-28 20:57:03 +01:00
|
|
|
|
|
|
|
pre_configure() {
|
2014-10-04 21:01:31 +02:00
|
|
|
. /etc/profile.d/10_openjdk.sh
|
2013-12-28 20:57:03 +01:00
|
|
|
./bootstrap
|
|
|
|
}
|
2013-05-08 16:09:38 +02:00
|
|
|
do_configure() {
|
2014-10-04 21:01:31 +02:00
|
|
|
. /etc/profile.d/10_openjdk.sh
|
2012-12-15 19:41:06 +01:00
|
|
|
# fix lsb_release dependency
|
|
|
|
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
|
2013-01-29 21:38:23 +01:00
|
|
|
|
2013-05-26 10:41:55 +02:00
|
|
|
./configure ${configure_args} \
|
2013-01-29 21:40:38 +01:00
|
|
|
--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 \
|
2014-05-05 14:14:58 +02:00
|
|
|
--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 \
|
|
|
|
--disable-external-ffmpeg --disable-afpclient \
|
|
|
|
--disable-airtunes --disable-hal --disable-webserver
|
2013-05-08 16:09:38 +02:00
|
|
|
}
|
2013-01-29 21:38:23 +01:00
|
|
|
|
2013-05-08 16:09:38 +02:00
|
|
|
do_build() {
|
2013-01-29 21:38:23 +01:00
|
|
|
make ${makejobs}
|
2012-12-05 00:13:38 +01:00
|
|
|
}
|
|
|
|
|
2013-01-29 21:38:23 +01:00
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
|
2011-08-11 22:44:16 +02:00
|
|
|
vinstall tools/Linux/xbmc.desktop 644 usr/share/applications
|
2014-05-05 14:14:58 +02:00
|
|
|
vinstall media/icon48x48.png 644 usr/share/pixmaps xbmc.png
|
2011-08-11 22:44:16 +02:00
|
|
|
|
|
|
|
vinstall xbmc-xrandr 755 usr/share/xbmc
|
|
|
|
vinstall tools/TexturePacker/TexturePacker 755 usr/share/xbmc
|
|
|
|
|
2010-12-19 16:46:48 +01:00
|
|
|
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
|
2010-12-14 22:47:44 +01:00
|
|
|
}
|