Commit 1a5adf51 authored by Natanael Copa's avatar Natanael Copa

main/mesa: upgrade to 18.3.5, use llvm7

main mesa package contains common config so let subpackages depend on
that.

We also dont need the replaces="mesa" since apk can handle that nowdays
and have been able to do so for years now.
parent b2e8b624
# Maintainer: Natanael Copa <ncopa@alpinelinux.org> # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mesa pkgname=mesa
pkgver=18.2.8 pkgver=18.3.5
pkgrel=0 pkgrel=0
pkgdesc="Mesa DRI OpenGL library" pkgdesc="Mesa DRI OpenGL library"
url="https://www.mesa3d.org" url="https://www.mesa3d.org"
...@@ -17,7 +17,7 @@ subpackages=" ...@@ -17,7 +17,7 @@ subpackages="
$pkgname-xatracker $pkgname-osmesa $pkgname-gbm $pkgname-xatracker $pkgname-osmesa $pkgname-gbm
$pkgname-vulkan-ati:_vulkan $pkgname-vulkan-ati:_vulkan
" "
_llvmver=5 _llvmver=7
depends_dev=" depends_dev="
libdrm-dev libdrm-dev
libxext-dev libxext-dev
...@@ -142,7 +142,7 @@ package() { ...@@ -142,7 +142,7 @@ package() {
egl() { egl() {
pkgdesc="Mesa libEGL runtime libraries" pkgdesc="Mesa libEGL runtime libraries"
replaces="mesa" depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libEGL.so* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libEGL.so* "$subpkgdir"/usr/lib/
...@@ -150,7 +150,7 @@ egl() { ...@@ -150,7 +150,7 @@ egl() {
gl() { gl() {
pkgdesc="Mesa libGL runtime libraries" pkgdesc="Mesa libGL runtime libraries"
replaces="mesa" depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libGL.so* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libGL.so* "$subpkgdir"/usr/lib/
...@@ -166,7 +166,7 @@ glapi() { ...@@ -166,7 +166,7 @@ glapi() {
gles() { gles() {
pkgdesc="Mesa libGLESv2 runtime libraries" pkgdesc="Mesa libGLESv2 runtime libraries"
replaces="mesa" depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libGLES*.so* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libGLES*.so* "$subpkgdir"/usr/lib/
...@@ -174,6 +174,7 @@ gles() { ...@@ -174,6 +174,7 @@ gles() {
xatracker() { xatracker() {
pkgdesc="Mesa XA state tracker for vmware" pkgdesc="Mesa XA state tracker for vmware"
depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libxatracker*.so.* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libxatracker*.so.* "$subpkgdir"/usr/lib/
...@@ -181,6 +182,7 @@ xatracker() { ...@@ -181,6 +182,7 @@ xatracker() {
osmesa() { osmesa() {
pkgdesc="Mesa offscreen rendering libraries" pkgdesc="Mesa offscreen rendering libraries"
depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libOSMesa.so.* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libOSMesa.so.* "$subpkgdir"/usr/lib/
...@@ -188,7 +190,7 @@ osmesa() { ...@@ -188,7 +190,7 @@ osmesa() {
gbm() { gbm() {
pkgdesc="Mesa gbm library" pkgdesc="Mesa gbm library"
replaces="mesa" depends="mesa"
install -d "$subpkgdir"/usr/lib install -d "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libgbm.so.* "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/libgbm.so.* "$subpkgdir"/usr/lib/
...@@ -247,6 +249,7 @@ _mv_va() { ...@@ -247,6 +249,7 @@ _mv_va() {
_dri() { _dri() {
local n=${subpkgname##*-dri-} local n=${subpkgname##*-dri-}
pkgdesc="Mesa DRI driver for $n" pkgdesc="Mesa DRI driver for $n"
depends="mesa"
case $n in case $n in
ati) ati)
...@@ -285,6 +288,7 @@ _dri() { ...@@ -285,6 +288,7 @@ _dri() {
_vulkan() { _vulkan() {
local n=${subpkgname##*-vulkan-} local n=${subpkgname##*-vulkan-}
pkgdesc="Mesa Vulkan API driver for $n" pkgdesc="Mesa Vulkan API driver for $n"
depends="mesa"
case $n in case $n in
ati) ati)
...@@ -293,7 +297,7 @@ _vulkan() { ...@@ -293,7 +297,7 @@ _vulkan() {
_mv_vulkan intel ;; _mv_vulkan intel ;;
esac esac
} }
sha512sums="04d5ada9ba3acea853def3ebcbb53ee76936a4cd4229ae753d2ce1b5cf543bea1e5764f2ef2b19735d47d041ba6b0582841bc89e2c9331fdfbd89386f599a1f7 mesa-18.2.8.tar.xz sha512sums="f229ac122eafee98d1a40c54adeb019eb4458cb67063db9ba760b265da0634fe77247c3c8cb5c5de5fd40f8545e35d45000a74af9257ebf4e2028156add8644c mesa-18.3.5.tar.xz
cdf22d2da3328e116c379264886bd01fd3ad5cc45fe03dc6fd97bdc4794502598ee195c0b9d975fa264d6ac31c6fa108c0535c91800ecf4fcabfd308e53074cc adjust-cache-deflate-buffer.patch cdf22d2da3328e116c379264886bd01fd3ad5cc45fe03dc6fd97bdc4794502598ee195c0b9d975fa264d6ac31c6fa108c0535c91800ecf4fcabfd308e53074cc adjust-cache-deflate-buffer.patch
8a434ffefdc6ce924d613727a8649b9a77ad9f0ed0674c9cfb8f6ff0fec483f9318e681254535b62c957db1d0432f96427f917e2f139f4c65ef761bffb528255 glx_ro_text_segm.patch 8a434ffefdc6ce924d613727a8649b9a77ad9f0ed0674c9cfb8f6ff0fec483f9318e681254535b62c957db1d0432f96427f917e2f139f4c65ef761bffb528255 glx_ro_text_segm.patch
cf849044d6cc7d2af4ff015208fb09d70bf9660538699797da21bda2ecb7c1892d312af83d05116afd826708d9caafb1d05a13f09139c558aea6fee931e3eee7 musl-fix-includes.patch" cf849044d6cc7d2af4ff015208fb09d70bf9660538699797da21bda2ecb7c1892d312af83d05116afd826708d9caafb1d05a13f09139c558aea6fee931e3eee7 musl-fix-includes.patch"
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