# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=1.6.0 pkgrel=0 pkgdesc="Video Acceleration (VA) API for Linux" url="http://freedesktop.org/wiki/Software/vaapi" arch="all" license="MIT" depends="" depends_dev="mesa-dev" makedepends="$depends_dev autoconf automake libtool" install="" subpackages="$pkgname-dev" source="http://www.freedesktop.org/software/vaapi/releases/libva/libva-$pkgver.tar.bz2" _builddir="$srcdir"/libva-$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 \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --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 \ "$pkgdir"/usr/lib/dri/*.la } md5sums="3f1241b4080db53c120325932f393f33 libva-1.6.0.tar.bz2" sha256sums="3ad9dc9c1a6a10e9cc4234c2a1cd5e568ec0cd25145e86875eba6e0d69153458 libva-1.6.0.tar.bz2" sha512sums="59a451e42bdb70bca83e90800763e0a1a666044189d6399acf1d539b5ebb85d6e12317e8c7f7a97345549de9fd34ee4c7dc52d17ad5c3eb083f80aa15d1b8ed0 libva-1.6.0.tar.bz2"