aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-08-14 04:16:48 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-08-14 04:17:24 -0300
commitf8d0e7877f794a28138c10af1f2b9c0a9937a853 (patch)
tree6436e059c6a9a4122afc040078a392cc4251a977
parent957ba4e94fe6a1b8bca8c60ad64d4c841afcc8fc (diff)
downloadaports-f8d0e7877f794a28138c10af1f2b9c0a9937a853.tar.gz
aports-f8d0e7877f794a28138c10af1f2b9c0a9937a853.tar.bz2
aports-f8d0e7877f794a28138c10af1f2b9c0a9937a853.tar.xz
testing/libva-vdpau-driver: fix build, license
-rw-r--r--testing/libva-vdpau-driver/APKBUILD30
1 files changed, 13 insertions, 17 deletions
diff --git a/testing/libva-vdpau-driver/APKBUILD b/testing/libva-vdpau-driver/APKBUILD
index ca2bcbebd1..d76e51b8a9 100644
--- a/testing/libva-vdpau-driver/APKBUILD
+++ b/testing/libva-vdpau-driver/APKBUILD
@@ -2,46 +2,42 @@
# Maintainer:
pkgname=libva-vdpau-driver
pkgver=0.7.4
-pkgrel=1
+pkgrel=2
pkgdesc="VDPAU backend for VA API"
+options="!check" # No testsuite
url="https://freedesktop.org/wiki/Software/vaapi"
arch="all !mips !mips64" # fails to build on mips
-license="GPL"
-depends=""
-depends_dev=""
+license="GPL-2.0-or-later"
makedepends="libva-dev mesa-dev libvdpau-dev"
-install=""
-subpackages=""
-source="https://freedesktop.org/software/vaapi/releases/$pkgname/$pkgname-$pkgver.tar.bz2
+source="https://freedesktop.org/software/vaapi/releases/libva-vdpau-driver/libva-vdpau-driver-$pkgver.tar.bz2
libva-vdpau-driver-0.7.4-VAEncH264VUIBufferType.patch
libva-vdpau-driver-0.7.4-glext-missing-definition.patch
libva-vdpau-driver-0.7.4-libvdpau-0.8.patch
musl-fixes.patch"
-builddir="$srcdir/$pkgname-$pkgver"
prepare() {
- default_prepare || return 1
+ default_prepare
+ update_config_sub
- cd "$builddir"
- update_config_sub || return 1
+ sed -e '/v4l2_buffer/d' \
+ -e '/v4l2_format/d' \
+ -i src/vdpau_video.c \
+ -i src/vdpau_video.h
}
build() {
- cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
- --localstatedir=/var \
- || return 1
- make || return 1
+ --localstatedir=/var
+ make
}
package() {
- cd "$builddir"
- make DESTDIR="$pkgdir" install || return 1
+ make DESTDIR="$pkgdir" install
}
sha512sums="89f98dc1d7d590fb68f440dd1e37e025d64a621324e013e85dd1367681c07b09132fd2089539fc5b48934624648887a8a97539b4f07ddf9f56a8a456ad030094 libva-vdpau-driver-0.7.4.tar.bz2