aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/mesa/APKBUILD17
1 files changed, 14 insertions, 3 deletions
diff --git a/main/mesa/APKBUILD b/main/mesa/APKBUILD
index 01f63a8359..4986ec3cf8 100644
--- a/main/mesa/APKBUILD
+++ b/main/mesa/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa
pkgver=9.0.2
-pkgrel=0
+pkgrel=1
pkgdesc="Mesa DRI OpenGL library"
url="http://www.mesa3d.org"
arch="all"
@@ -80,6 +80,7 @@ build() {
--enable-egl \
--enable-texture-float \
--enable-xa \
+ --enable-vdpau \
|| return 1
make || return 1
@@ -168,9 +169,19 @@ _mv_dri() {
done
}
-ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri; }
+_mv_vdpau() {
+ local i
+ install -d "$subpkgdir"/usr/lib/vdpau
+ for i in "$@"; do
+ mv "$pkgdir"/usr/lib/vdpau/libvdpau_$i.* \
+ "$subpkgdir"/usr/lib/vdpau/ || return 1
+ done
+}
+
+ati() { _mv_dri radeon_dri r200_dri r300_dri r600_dri \
+ && _mv_vdpau r300 r600 softpipe; }
intel() { _mv_dri i915_dri i965_dri; }
-nouveau() { _mv_dri nouveau_dri nouveau_vieux_dri; }
+nouveau() { _mv_dri nouveau_dri nouveau_vieux_dri && _mv_vdpau nouveau; }
swrast() { _mv_dri swrast_dri; }
vmwgfx() { _mv_dri vmwgfx_dri; }