mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-15 13:41:59 +01:00
61 lines
1.6 KiB
Plaintext
61 lines
1.6 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libva
|
|
pkgver=1.5.1
|
|
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"
|
|
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
|
|
# 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="d6d34cd725a0100a5e476e711838e1b1 libva-1.5.1.tar.bz2"
|
|
sha256sums="2511b25ead7a6ac1358bc4b81157647fef61e3904ccaca3cfefc3e976a0da005 libva-1.5.1.tar.bz2"
|
|
sha512sums="f3198c7b138974c75b0a929c26b15b4b72ec38fccd782a6d0b4df7ab0d496ceb14beac6837da13806c9dcfe6576d2cf585c01acd6e90ba0542d43c07efe530d8 libva-1.5.1.tar.bz2"
|