xbmc: enable VA-API support, misc changes.

This commit is contained in:
Juan RP 2011-08-11 22:44:16 +02:00
parent ecdc3ae645
commit 812347e10f

View file

@ -1,7 +1,7 @@
# Template file for 'xbmc' # Template file for 'xbmc'
pkgname=xbmc pkgname=xbmc
version=10.1 version=10.1
revision=2 revision=3
distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz" distfiles="http://mirrors.xbmc.org/releases/source/xbmc-$version.tar.gz"
build_style=custom-install build_style=custom-install
short_desc="XBMC Media Center" short_desc="XBMC Media Center"
@ -62,6 +62,14 @@ Add_dependency run libXrender
Add_dependency run bzip2 Add_dependency run bzip2
Add_dependency run libsamplerate Add_dependency run libsamplerate
Add_dependency run libmms Add_dependency run libmms
Add_dependency run libva
Add_dependency run dbus ">=0"
Add_dependency run udisks ">=0"
Add_dependency run upower ">=0"
Add_dependency run hicolor-icon-theme
Add_dependency run desktop-file-utils
Add_dependency run mesa-demos # required glxinfo
Add_dependency build pkg-config Add_dependency build pkg-config
Add_dependency build gperf Add_dependency build gperf
@ -116,13 +124,7 @@ Add_dependency build enca-devel
Add_dependency build bzip2-devel Add_dependency build bzip2-devel
Add_dependency build boost-devel Add_dependency build boost-devel
Add_dependency build libcurl-devel Add_dependency build libcurl-devel
Add_dependency build libva-devel
Add_dependency full dbus ">=0"
Add_dependency full udisks ">=0"
Add_dependency full upower ">=0"
Add_dependency full hicolor-icon-theme
Add_dependency full desktop-file-utils
Add_dependency full mesa-demos # required glxinfo
do_build() do_build()
{ {
@ -143,12 +145,11 @@ post_install()
{ {
make prefix=${DESTDIR}/usr install make prefix=${DESTDIR}/usr install
# Fix files containing invalid chars "&". vinstall tools/Linux/xbmc.desktop 644 usr/share/applications
find ${DESTDIR} -type f | while read f; do vinstall tools/Linux/xbmc-48x48.png 644 usr/share/pixmaps xbmc.png
if $(echo "$f"|grep -q "&"); then
newf=$(echo "$f"|sed -e "s|&|and|g") vinstall xbmc-xrandr 755 usr/share/xbmc
mv "$f" "$newf" vinstall tools/TexturePacker/TexturePacker 755 usr/share/xbmc
fi
done
rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache rm -f ${DESTDIR}/usr/share/icons/hicolor/icon-theme.cache
} }