aboutsummaryrefslogtreecommitdiffstats
path: root/main/libva-intel-driver/APKBUILD
blob: 2e0dd392c910b5ee9a8e38b86fbd6cb693de864d (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva-intel-driver
pkgver=1.3.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="all"
license="MIT"
depends=""
depends_dev="libdrm-dev libva-dev"
makedepends="$depends_dev"
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"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*/*.la
}

md5sums="26d5cb188b93e415e70ee662aad924f1  libva-intel-driver-1.3.0.tar.bz2"
sha256sums="734c15e78495f53fecb9862a22579d05ca5994fac4d04e3cc804ca9cbaa7fb6c  libva-intel-driver-1.3.0.tar.bz2"
sha512sums="09566199409f76b8a533857c6bef26c35cd21b1555d29b395e72649fa0337b86b4a65eb5adf4144649ae26d5d8c93f1462d19011c95de9256728cadf56975e5d  libva-intel-driver-1.3.0.tar.bz2"