aboutsummaryrefslogtreecommitdiffstats
path: root/main/libva/APKBUILD
blob: 77d689ce49de7591bd13c6f32fc3a7986829d59d (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=2.7.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() {
	meson builddir \
		--prefix=/usr \
		-Dwith_glx=no \
		-Dwith_wayland=yes
	ninja -C builddir
}

package() {
	DESTDIR="$pkgdir" ninja -C builddir install
}

sha512sums="6f6c8f9a479f0265415c0926b52aaa4cf54ba5e63170196934f24aecd71ceb1e3f28f5afa2671307885db6f520d6f748f94025a7b62c59f72b8ad9d3744bbdf3  libva-2.7.0.tar.gz"