blob: 80715008c4f45121fd6e7a3612b958e0cc26ed82 (
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
43
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=2.6.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.pre1.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver.pre1
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="8a7de81367371d31f4bd988dec0ec9c47e6c89fcb17e6426e7b859fca63fb75ad57e555d658ce5cceac00dfcbc93428e625ef58da168c881f819a41134603232 libva-2.6.0.tar.gz"
|