# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=1.8.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" 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 } sha512sums="f9466aa0a9537e9e8db4028a1ef2da9ffe70932867c2b00dd2e4cfd7062b1356ce1b7e1ea8d261341a30a7b506d00152b2bc2dea79009001854f9f2e65e6e28a libva-1.8.1.tar.bz2"