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.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
|
|
}
|
|
|
|
md5sums="7309097b790de8dbc9641ed6393eab9f libva-1.7.0.tar.bz2"
|
|
sha256sums="a689bccbcc81a66b458e448377f108c057d3eee44a2e21a23c92c549dc8bc95f libva-1.7.0.tar.bz2"
|
|
sha512sums="b6b5317e875c9a4e17ec4f8d37383edf83a479aa4d9fa85bcf7debecae40efc56506905a0eefcc695364543436b3d80ed007eb45c6161fae01ee979ed82a3ca0 libva-1.7.0.tar.bz2"
|