blob: 12e29d5d11ab1ad11654abaffec379e1ab9ba957 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=2.18.0
pkgrel=1
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="
12e8d837604d2f354d849a8adc84281ae1ecfd2433f1b7dc8e28b5d703ada42b4a84b2b3870e8d2397b77d0d9741afe3bc04d25b4426531805aeb72defaac7ad libva-2.18.0.tar.gz
"
|