# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva-intel-driver pkgver=1.5.0 pkgrel=0 pkgdesc="VA-API implementation for Intel G45 chipsets and Intel HD Graphics for Intel Core processor family" url="http://freedesktop.org/wiki/Software/vaapi" arch="x86 x86_64" license="MIT" depends="" depends_dev="libdrm-dev libva-dev" makedepends="$depends_dev autoconf automake libtool" install="" subpackages="" install_if="libva xf86-video-intel" source="http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/libva-intel-driver-$pkgver.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done # we need to regen the configure script which will unconditionally # depend on wayland scanner otherwise libtoolize --force && aclocal -I m4 && autoconf \ && automake --add-missing } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --enable-x11 \ --disable-wayland \ --disable-static \ --enable-shared \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*/*.la } md5sums="16752f1584398265072129553b7907ce libva-intel-driver-1.5.0.tar.bz2" sha256sums="d0b448193ab34b622cd14e4db8ca29991a4038b4eb459a8fbbcbd7db843da3dc libva-intel-driver-1.5.0.tar.bz2" sha512sums="aef41b40a9d926c2555e58258a65b82a406e24ab4e4e513390674dfabc05c8e6ebc31bf00adfd399800e81523f88209a4df286216fb8e7236c8f11f09061825e libva-intel-driver-1.5.0.tar.bz2"