APKBUILD 1.25 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
pkgdesc="Video Acceleration (VA) API for Linux"
url="http://freedesktop.org/wiki/Software/vaapi"
arch="all"
9
options="!check"  # No test suite.
Carlo Landmeter's avatar
Carlo Landmeter committed
10
11
12
license="MIT"
depends=""
depends_dev="mesa-dev"
Natanael Copa's avatar
Natanael Copa committed
13
makedepends="$depends_dev autoconf automake libtool"
Carlo Landmeter's avatar
Carlo Landmeter committed
14
15
install=""
subpackages="$pkgname-dev"
Taner Tas's avatar
Taner Tas committed
16
source="https://github.com/01org/${pkgname}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
Carlo Landmeter's avatar
Carlo Landmeter committed
17
18

prepare() {
19
20
	cd "$builddir"
	default_prepare
Natanael Copa's avatar
Natanael Copa committed
21
22
23
24
	# 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
25
26
27
}

build() {
28
	cd "$builddir"
29
30
31
32
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Carlo Landmeter's avatar
Carlo Landmeter committed
33
34
35
36
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
Natanael Copa's avatar
Natanael Copa committed
37
38
39
		--enable-x11 \
		--disable-wayland \
		--disable-static \
40
41
		--enable-shared
	make
Carlo Landmeter's avatar
Carlo Landmeter committed
42
43
44
}

package() {
45
46
	cd "$builddir"
	make DESTDIR="$pkgdir" install
Carlo Landmeter's avatar
Carlo Landmeter committed
47
48
}

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