# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=1.4.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="566e68d0a5a7758b2147dd3e60905bf3 libva-1.4.0.tar.bz2" sha256sums="70c36e6bd1159658043d655372cecf7a45d90c168df8868c112ed2189a6b7651 libva-1.4.0.tar.bz2" sha512sums="f49a3c4bcd3d9b7813daa3793bec0ccbd54859c4b116e7009e9877d580a506f94f272600bba74cc5b2ef2caead15d24104d92f501a5fc5d02d62d7fac4f3da3c libva-1.4.0.tar.bz2"