74 lines
2.8 KiB
Text
74 lines
2.8 KiB
Text
# Template file for 'xbmc'
|
|
pkgname=xbmc
|
|
version=12.3
|
|
revision=2
|
|
wrksrc="xbmc-${version}-Frodo"
|
|
short_desc="XBMC Media Center"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.xbmc.org"
|
|
license="GPL-2"
|
|
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz"
|
|
checksum=3e15c960d034efdea5f92a7b74716cb48094842d077b076025fd8640754ede73
|
|
|
|
lib32disabled=yes
|
|
broken_as_needed=yes
|
|
only_for_archs="i686 x86_64"
|
|
|
|
# XXX add support for webserver (microhttpd), afp and libcec.
|
|
hostmakedepends="
|
|
automake libtool pkg-config gperf cmake zip unzip nasm yasm python-devel
|
|
swig jre which gettext-devel libltdl-devel"
|
|
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
|
|
libmysqlclient-devel>=5.5.27 libmpeg2-devel wavpack-devel zlib-devel lzo-devel
|
|
libXmu-devel glew-devel>=1.9.0 fribidi-devel sqlite-devel libcdio-devel freetype-devel
|
|
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
|
|
libbluetooth-devel yajl-devel libplist-devel librtmp-devel tinyxml-devel
|
|
taglib-devel libcap-devel lame-devel libbluray-devel libnfs-devel systemd-devel
|
|
libcec-devel"
|
|
makedepends+=" udisks2 upower hicolor-icon-theme desktop-file-utils glxinfo"
|
|
# 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"
|
|
|
|
pre_configure() {
|
|
. /etc/profile.d/java.sh
|
|
./bootstrap
|
|
}
|
|
|
|
do_configure() {
|
|
. /etc/profile.d/java.sh
|
|
# fix lsb_release dependency
|
|
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
|
|
|
|
./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 --disable-afpclient \
|
|
--enable-airplay --disable-airtunes --enable-ffmpeg-libvorbis \
|
|
--disable-hal --enable-avahi --disable-webserver \
|
|
--enable-libbluray --enable-texturepacker --enable-udev \
|
|
--enable-libcec --enable-external-libraries \
|
|
--disable-external-ffmpeg --disable-ssh
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
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
|
|
|
|
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
|
|
}
|