# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=1.3.1 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" update_config_sub || return 1 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="eb4db967f068854444b597071c66b480 libva-1.3.1.tar.bz2" sha256sums="8789b1f1ca9cbc2c1ae477323ec8f5fb269b9360410d4d5e9ec96d679b3cc297 libva-1.3.1.tar.bz2" sha512sums="12afa39b965c50beb4a3f356b0fea18123d885a3c24b452a59906db38369362b290b35eaebcbc3e6079aa5d63f8d9c263d236bde9744d4b3725497bc700e5661 libva-1.3.1.tar.bz2"