aports/main/libva/APKBUILD
Leo 343339a511 main/libva: update to 2.4.1
- Switch to meson build system
- Enable wayland support
2019-05-07 18:38:45 +00:00

44 lines
1.1 KiB
Plaintext

# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=2.4.1
pkgrel=0
pkgdesc="Video Acceleration (VA) API for Linux"
url="https://freedesktop.org/wiki/Software/vaapi"
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"
builddir="$srcdir"/$pkgname-$pkgver
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 )
cd "$builddir"
default_prepare
}
build() {
cd "$builddir"
meson builddir \
--prefix=/usr \
-Dwith_glx=no \
-Dwith_wayland=yes
ninja -C builddir
}
package() {
cd "$builddir"
DESTDIR="$pkgdir" ninja -C builddir install
}
sha512sums="6ad2255aebcc62b3a7f67f03585f8046742a8a9b33c0feaee7dc0a713ab2117b13f154c3574f98aa2fb07fd2336635df3ea2675ec4d1c25ae3b2834aeab8692e libva-2.4.1.tar.gz"