aboutsummaryrefslogtreecommitdiffstats
path: root/main/libva-glx/APKBUILD
blob: cf1ec7ef5743519341b54be135a70507cad4f814 (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>

# this package is to resolve the circular dependency libva -> mesa -> libva

pkgname=libva-glx
pkgver=2.2.0
pkgrel=0
pkgdesc="Video Acceleration (VA) API for Linux with MESA support"
url="https://freedesktop.org/wiki/Software/vaapi"
arch="all"
options="!check"  # No test suite.
license="MIT"
depends=""
depends_dev="libva-dev mesa-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages="$pkgname-dev"
source="https://github.com/01org/libva/releases/download/$pkgver/libva-$pkgver.tar.bz2"
builddir="$srcdir"/libva-$pkgver

prepare() {
	( if [ -f "$startdir"/../libva/APKBUILD ]; then
		_v=$pkgver
		. "$startdir"/../libva/APKBUILD
		if [ "$_v" != "$pkgver" ]; then
			die "libva and libva-glx needs to be same version"
		fi
	fi )

	cd "$builddir"
	default_prepare
	# we need to regen the configure script which will unconditionally
	# depend on wayland scanner otherwise
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --add-missing
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-x11 \
		--enable-glx \
		--disable-drm \
		--disable-wayland \
		--disable-static \
		--enable-shared
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -type f -o -type l \) \! -name '*glx*' -delete
}

sha512sums="21e79b32cd846f3786635f470763c2046b302fdd3574eb70ac67c40140168ec76a33e2bbcdd2408859b38b9774fa15c89429e128ef381092505b4f39b1b1331a  libva-2.2.0.tar.bz2"