aboutsummaryrefslogtreecommitdiffstats
path: root/main/libva-intel-driver/APKBUILD
blob: 8186d8dd8166504c6294ed2e89e4a4e46e1c49ab (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva-intel-driver
pkgver=2.2.0
pkgrel=0
pkgdesc="VA-API implementation for Intel GMA chipsets and Intel HD Graphics"
url="https://freedesktop.org/wiki/Software/vaapi"
arch="x86 x86_64"
license="MIT"
depends=""
makedepends="libdrm-dev libva-dev autoconf automake libtool"
install=""
subpackages=""
install_if="libva xf86-video-intel"
source="${pkgname}-${pkgver}.tar.bz2::https://github.com/01org/intel-vaapi-driver/releases/download/${pkgver}/intel-vaapi-driver-${pkgver}.tar.bz2"

builddir="$srcdir"/intel-vaapi-driver-$pkgver
prepare() {
	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 \
		--enable-x11 \
		--disable-wayland \
		--disable-static \
		--enable-shared
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="7f269a513e827a2a291bf513c860de0341daf487697b47d4515fcdf78a1b51d0ab5e491bdc1a1babaa888ecc3dcfb1c7ae16624eee41b2d3609c8d1d24d0e12f  libva-intel-driver-2.2.0.tar.bz2"