void-packages/srcpkgs/xbmc/template

48 lines
2.1 KiB
Plaintext

# Template file for 'xbmc'
pkgname=xbmc
version=11.0
revision=13
build_style=gnu-configure
configure_args="--disable-debug --enable-sdl --enable-vdpau --enable-vaapi
--disable-crystalhd --disable-tegra --disable-nfs --disable-afpclient
--disable-hal --disable-webserver --enable-udev --disable-ccache
--enable-external-libraries --disable-external-ffmpeg"
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=1fe5d310c16138f26e2b13bc545604e95f48ace6c8636f23e77da402cd7b0b19
disable_debug=yes
broken_as_needed=yes
depends="udisks upower hicolor-icon-theme desktop-file-utils mesa-demos"
makedepends="pkg-config gperf cmake zip unzip nasm yasm libudev-devel>=183
pcre-devel>=8.30 expat-devel libpng-devel>=1.5.10 libjpeg-turbo-devel tiff-devel libXmu-devel
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
glu-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"
pre_configure() {
# fix lsb_release dependency
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
}
post_install() {
# lsb_release fix
sed -i -e 's/which lsb_release &> \/dev\/null/Void Linux/g' ${DESTDIR}/usr/bin/xbmc
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/Void Linux/g" ${DESTDIR}/usr/bin/xbmc
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
}