# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=2.19.0 pkgrel=0 pkgdesc="Video Acceleration (VA) API for Linux" url="https://01.org/linuxmedia" arch="all" options="!check" # No test suite. license="MIT" depends_dev="libx11-dev libxext-dev libxfixes-dev libdrm-dev" makedepends="$depends_dev meson wayland-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/intel/libva/archive/$pkgver.tar.gz" prepare() { ( if [ -f "$startdir"/../libva-glx/APKBUILD ]; then _v=$pkgver . "$startdir"/../libva-glx/APKBUILD if [ "$_v" != "$pkgver" ]; then die "libva and libva-glx needs to be same version" fi fi ) default_prepare } build() { abuild-meson \ -Db_lto=true \ -Dwith_glx=no \ -Dwith_wayland=yes \ builddir meson compile -C builddir } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C builddir } sha512sums=" 04976f84487abac1a194a7ace9f698bb01eed04369e027351f63e07ced8694dbbe45511965e7775a6d8a701d6ad61fe6d57a23ee8c9b0d99089d5108657d018c libva-2.19.0.tar.gz "