mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-29 13:22:21 +01:00
58 lines
1.5 KiB
Plaintext
58 lines
1.5 KiB
Plaintext
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=libva
|
|
pkgver=1.7.2
|
|
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
|
|
}
|
|
|
|
md5sums="77d30af5a4bfaec6dddc2bdcbbd92ef5 libva-1.7.2.tar.bz2"
|
|
sha256sums="5dd61cf16a5648b680e6146a58064e93be11bf4e65a9e4e30f1e9cb8ecfa2c13 libva-1.7.2.tar.bz2"
|
|
sha512sums="4a1da09416361b69813a6fa77ee1de3d546eb1bb0d8beb7933f2c00cf9fbb8ab4e74019fa432239ee618282fdc42cb1f7f1ae2781c1d851e461994288b888a10 libva-1.7.2.tar.bz2"
|