aboutsummaryrefslogtreecommitdiffstats
path: root/main/libva-intel-driver/APKBUILD
blob: b3aa67e8a68c42765506ba7e38a884b9b8583763 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva-intel-driver
pkgver=1.7.0
pkgrel=0
pkgdesc="VA-API implementation for Intel G45 chipsets and Intel HD Graphics for Intel Core processor family"
url="http://freedesktop.org/wiki/Software/vaapi"
arch="x86 x86_64"
license="MIT"
depends=""
depends_dev="libdrm-dev libva-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
subpackages=""
install_if="libva xf86-video-intel"
source="http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver/libva-intel-driver-$pkgver.tar.bz2"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	# 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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="00619c393e0c9c74b205d9adf69b68db  libva-intel-driver-1.7.0.tar.bz2"
sha256sums="9d19d6c789a9a4fbce23c4f0eaf993ba776b512bec4c87982ab17ac841435c0c  libva-intel-driver-1.7.0.tar.bz2"
sha512sums="9df8aa53a0f24580ef4b9c1ced2a12503755f6e0acc23d7e3784f0a246825cc4e1e9f7ad7f605e47bc67ec1a28008c75c31a807fb97014957065327c02122cd9  libva-intel-driver-1.7.0.tar.bz2"