blob: 168f0afb1dfe5858eeaf98b8296909b932895834 (
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
55
56
57
58
59
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=1.5.0
pkgrel=0
pkgdesc="Video Acceleration (VA) API for Linux"
url="http://freedesktop.org/wiki/Software/vaapi"
arch="all"
license="MIT"
depends=""
depends_dev="mesa-dev"
makedepends="$depends_dev autoconf automake libtool"
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
# 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 \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-x11 \
--disable-wayland \
--disable-static \
--enable-shared \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm -f "$pkgdir"/usr/lib/*.la \
"$pkgdir"/usr/lib/dri/*.la
}
md5sums="ad0b55794308ec397d249a0a2a6df27a libva-1.5.0.tar.bz2"
sha256sums="e946d4b3110e4e23ec6a588e0c828937e502c67196d1266214441fefc4b83486 libva-1.5.0.tar.bz2"
sha512sums="68f7605678b7c617edce8d81d88880806c92b431147614b4f802f0f93d844f14f6d3756040002d063ef4d049e2949958ea0f95a3bb2eafc8f47729c0ee97905a libva-1.5.0.tar.bz2"
|