APKBUILD 1.37 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
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=1.8.2
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
15
16
17
18
19
20
21
22
23
24
25
install=""
subpackages="$pkgname-dev"
source="http://www.freedesktop.org/software/vaapi/releases/libva/libva-$pkgver.tar.bz2"

_builddir="$srcdir"/libva-$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
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
}

Natanael Copa's avatar
Natanael Copa committed
55
sha512sums="8837368886bd9815cb30154c0f087b020737326eaa4ee03c430ba3e980600edeb2f1754d198490d64c8cf7e46c308661e61a4326f1f6742feb179cd8d0836ace  libva-1.8.2.tar.bz2"