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