# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva-intel-driver pkgver=1.4.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="all" 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="c8b4012ba793bf2c7d922fee3a5e28bd libva-intel-driver-1.4.0.tar.bz2" sha256sums="f487cee5ddbfb5f11d83a825f4ee72092c9e36018f282e6b2d76baa2ba1abfa2 libva-intel-driver-1.4.0.tar.bz2" sha512sums="2ab3be0a4ff9d721a94c1096333d1c92483a8ccbbae42bedd3f83a6bf0f8bb836d44090d77187d3c963e4718a9a1b31620689f1eeb7268666150272f9283093b libva-intel-driver-1.4.0.tar.bz2"