xbmc: needs libswresample at run time; avoid lsb_release dependency.

This commit is contained in:
Juan RP 2012-12-15 19:41:06 +01:00
parent 543d17426d
commit 2643dd476a
1 changed files with 8 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'xbmc'
pkgname=xbmc
version=11.0
revision=8
revision=9
patch_args="-Np1"
build_style=gnu-configure
configure_args="--disable-debug --enable-sdl --enable-vdpau --enable-vaapi
@ -20,7 +20,8 @@ long_desc="
Windows, and the original Xbox."
broken_as_needed=yes
depends="udisks upower hicolor-icon-theme desktop-file-utils mesa-demos librtmp"
depends="udisks upower hicolor-icon-theme desktop-file-utils mesa-demos
librtmp libswresample"
makedepends="automake gettext-devel libltdl-devel
pkg-config gperf cmake zip unzip nasm yasm libudev-devel>=183
@ -34,10 +35,15 @@ makedepends="automake gettext-devel libltdl-devel
libbluetooth-devel yajl-devel libplist-devel ffmpeg-devel>=1.0.1 librtmp-devel"
pre_configure() {
# fix lsb_release dependency
sed -i -e 's:/usr/bin/lsb_release -d:/bin/true:' xbmc/utils/SystemInfo.cpp
./bootstrap
}
post_install() {
sed -i -e 's/which lsb_release &> \/dev\/null/\[ -f \/etc\/os-release ]/g' ${DESTDIR}/bin/xbmc
sed -i -e "s/lsb_release -a 2> \/dev\/null | sed -e 's\/\^\/ \/'/bin\/true/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