APKBUILD 1.39 KB
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
Natanael Copa's avatar
Natanael Copa committed
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
3
pkgname=libva
Taner Tas's avatar
Taner Tas committed
4
pkgver=2.0.0
Carlo Landmeter's avatar
Carlo Landmeter committed
5
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
6
7
8
9
10
11
pkgdesc="Video Acceleration (VA) API for Linux"
url="http://freedesktop.org/wiki/Software/vaapi"
arch="all"
license="MIT"
depends=""
depends_dev="mesa-dev"
Natanael Copa's avatar
Natanael Copa committed
12
makedepends="$depends_dev autoconf automake libtool"
Carlo Landmeter's avatar
Carlo Landmeter committed
13
14
install=""
subpackages="$pkgname-dev"
Taner Tas's avatar
Taner Tas committed
15
source="https://github.com/01org/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
Carlo Landmeter's avatar
Carlo Landmeter committed
16

Taner Tas's avatar
Taner Tas committed
17
_builddir="$srcdir"/${pkgname}-$pkgver
Carlo Landmeter's avatar
Carlo Landmeter committed
18
19
20
21
22
23
24
25
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
Natanael Copa's avatar
Natanael Copa committed
26
27
28
29
	# we need to regen the configure script which will unconditionally
	# depend on wayland scanner otherwise
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --add-missing
Carlo Landmeter's avatar
Carlo Landmeter committed
30
31
32
33
}

build() {
	cd "$_builddir"
34
35
36
37
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Carlo Landmeter's avatar
Carlo Landmeter committed
38
39
40
41
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
Natanael Copa's avatar
Natanael Copa committed
42
43
44
45
		--enable-x11 \
		--disable-wayland \
		--disable-static \
		--enable-shared \
Carlo Landmeter's avatar
Carlo Landmeter committed
46
47
48
49
50
51
52
53
54
		|| return 1
	make || return 1
}

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

Taner Tas's avatar
Taner Tas committed
55
sha512sums="72e0aba7808d541c4d54c2628c372d765e444bcdd266b9ef7a1aec2c9c8732efda6fb525befbf39ba2f8f3c845c2d647bef6678875d7b78fa2db5eaa05442bf3  libva-2.0.0.tar.bz2"