void-packages/srcpkgs/xbmc/template

60 lines
2.4 KiB
Text
Raw Normal View History

# Template file for 'xbmc'
pkgname=xbmc
2013-01-29 19:58:22 +00:00
version=12.0
revision=1
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-01-29 19:58:22 +00:00
checksum=53018cd014b5203df5e5ef4080931ef499d3740815f32d17dce92ef7d050c16f
disable_debug=yes
2012-10-09 09:18:16 +00:00
broken_as_needed=yes
# XXX add support for webserver (microhttpd), afp, libnfs, libcec and libbluray.
depends="udisks upower hicolor-icon-theme desktop-file-utils mesa-demos"
makedepends="pkg-config gperf cmake zip unzip nasm yasm libudev-devel>=183
2013-01-29 19:58:22 +00:00
pcre-devel>=8.30 expat-devel libpng-devel>=1.5.10 libjpeg-turbo-devel tiff-devel
2012-10-09 09:18:16 +00:00
libXrandr-devel avahi-libs-devel pulseaudio-devel SDL_mixer-devel samba-devel
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
taglib-devel libssh2-devel libcap-devel lame-devel swig jre which"
2012-10-09 09:18:16 +00:00
do_build() {
. /etc/profile.d/jre.sh
# fix lsb_release dependency
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
./configure ${CONFIGURE_SHARED_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 --disable-nfs --disable-afpclient
--enable-airplay --disable-airtunes --enable-ffmpeg-libvorbis
--disable-hal --enable-avahi --disable-webserver
--disable-libbluray --enable-texturepacker --enable-udev
--disable-libcec --enable-external-libraries
--disable-external-ffmpeg --disable-ssh
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
2010-12-19 15:46:48 +00:00
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
}