Commit 343339a5 authored by Leo's avatar Leo Committed by Natanael Copa

main/libva: update to 2.4.1

- Switch to meson build system
- Enable wayland support
parent f51e4340
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libva
pkgver=2.2.0
pkgver=2.4.1
pkgrel=0
pkgdesc="Video Acceleration (VA) API for Linux"
url="https://freedesktop.org/wiki/Software/vaapi"
arch="all"
options="!check" # No test suite.
license="MIT"
depends=""
depends_dev="libx11-dev libxext-dev libxfixes-dev libdrm-dev"
makedepends="$depends_dev autoconf automake libtool"
install=""
makedepends="$depends_dev meson wayland-dev"
subpackages="$pkgname-dev"
source="https://github.com/01org/libva/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2"
source="$pkgname-$pkgver.tar.gz::https://github.com/intel/libva/archive/${pkgver}.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
prepare() {
......@@ -26,33 +24,20 @@ prepare() {
fi )
cd "$builddir"
default_prepare
# 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 \
meson builddir \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-x11 \
--disable-glx \
--disable-wayland \
--disable-static \
--enable-shared
make
-Dwith_glx=no \
-Dwith_wayland=yes
ninja -C builddir
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
DESTDIR="$pkgdir" ninja -C builddir install
}
sha512sums="21e79b32cd846f3786635f470763c2046b302fdd3574eb70ac67c40140168ec76a33e2bbcdd2408859b38b9774fa15c89429e128ef381092505b4f39b1b1331a libva-2.2.0.tar.bz2"
sha512sums="6ad2255aebcc62b3a7f67f03585f8046742a8a9b33c0feaee7dc0a713ab2117b13f154c3574f98aa2fb07fd2336635df3ea2675ec4d1c25ae3b2834aeab8692e libva-2.4.1.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment