mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
mesa: update to 25.1.6
adds nvidia NVK previous PR #54671 closes #56006 issue
This commit is contained in:
parent
3f18c04dd4
commit
aa34543c51
2 changed files with 51 additions and 4 deletions
1
srcpkgs/mesa-vulkan-nouveau
Symbolic link
1
srcpkgs/mesa-vulkan-nouveau
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
mesa
|
|
@ -1,9 +1,14 @@
|
||||||
# Template file for 'mesa'
|
# Template file for 'mesa'
|
||||||
pkgname=mesa
|
pkgname=mesa
|
||||||
version=25.1.3
|
version=25.1.6
|
||||||
revision=1
|
revision=1
|
||||||
build_style=meson
|
build_style=meson
|
||||||
_llvmver=19
|
_llvmver=19
|
||||||
|
_syn_version=2.0.68
|
||||||
|
_proc_macro_version=1.0.86
|
||||||
|
_quote_version=1.0.33
|
||||||
|
_unicode_ident_version=1.0.12
|
||||||
|
_paste_version=1.0.14
|
||||||
#Disable LTO flag should be present, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/6911
|
#Disable LTO flag should be present, see https://gitlab.freedesktop.org/mesa/mesa/-/issues/6911
|
||||||
configure_args="-Dglvnd=true -Dgbm=enabled -Degl=enabled
|
configure_args="-Dglvnd=true -Dgbm=enabled -Degl=enabled
|
||||||
-Dgles1=enabled -Dgles2=enabled -Dglx=dri
|
-Dgles1=enabled -Dgles2=enabled -Dglx=dri
|
||||||
|
@ -23,8 +28,23 @@ maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
license="MIT, LGPL-2.1-or-later"
|
license="MIT, LGPL-2.1-or-later"
|
||||||
homepage="https://www.mesa3d.org/"
|
homepage="https://www.mesa3d.org/"
|
||||||
changelog="https://docs.mesa3d.org/relnotes.html"
|
changelog="https://docs.mesa3d.org/relnotes.html"
|
||||||
distfiles="https://mesa3d.org/archive/mesa-${version}.tar.xz"
|
distfiles="https://mesa3d.org/archive/mesa-${version}.tar.xz
|
||||||
checksum=ffcb6cadb5fd356d56008e6308641dfe4b2929f30139f6585436ca6e3cddba7f
|
https://crates.io/api/v1/crates/syn/${_syn_version}/download>syn-${_syn_version}.tar.gz
|
||||||
|
https://crates.io/api/v1/crates/proc-macro2/${_proc_macro_version}/download>proc-macro2-${_proc_macro_version}.tar.gz
|
||||||
|
https://crates.io/api/v1/crates/quote/${_quote_version}/download>quote-${_quote_version}.tar.gz
|
||||||
|
https://crates.io/api/v1/crates/unicode-ident/${_unicode_ident_version}/download>unicode-ident-${_unicode_ident_version}.tar.gz
|
||||||
|
https://crates.io/api/v1/crates/paste/${_paste_version}/download>paste-${_paste_version}.tar.gz"
|
||||||
|
checksum="9f2b69eb39d2d8717d30a9868fdda3e0c0d3708ba32778bbac8ddb044538ce84
|
||||||
|
901fa70d88b9d6c98022e23b4136f9f3e54e4662c3bc1bd1d84a42a9a0f0c1e9
|
||||||
|
5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77
|
||||||
|
5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae
|
||||||
|
3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b
|
||||||
|
de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
|
||||||
|
skip_extraction="syn-${_syn_version}.tar.gz
|
||||||
|
proc-macro2-${_proc_macro_version}.tar.gz
|
||||||
|
quote-${_quote_version}.tar.gz
|
||||||
|
unicode-ident-${_unicode_ident_version}.tar.gz
|
||||||
|
paste-${_paste_version}.tar.gz"
|
||||||
|
|
||||||
build_helper="qemu"
|
build_helper="qemu"
|
||||||
build_options="wayland"
|
build_options="wayland"
|
||||||
|
@ -114,6 +134,9 @@ if [ "$_have_nv" ]; then
|
||||||
# transitional dummy packages
|
# transitional dummy packages
|
||||||
subpackages+=" mesa-tegra-dri"
|
subpackages+=" mesa-tegra-dri"
|
||||||
fi
|
fi
|
||||||
|
_vulkan_drivers+=",nouveau"
|
||||||
|
hostmakedepends+=" cbindgen"
|
||||||
|
subpackages+=" mesa-vulkan-nouveau"
|
||||||
# transitional dummy packages
|
# transitional dummy packages
|
||||||
subpackages+=" mesa-nouveau-dri"
|
subpackages+=" mesa-nouveau-dri"
|
||||||
fi
|
fi
|
||||||
|
@ -195,6 +218,21 @@ case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc*) configure_args+=" -Dpower8=false" ;;
|
ppc*) configure_args+=" -Dpower8=false" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
_prepare_subproject() {
|
||||||
|
local subname=$1
|
||||||
|
local subversion=$2
|
||||||
|
vsrcextract -C subprojects/${subname}-${subversion} ${subname}-${subversion}.tar.gz
|
||||||
|
cp subprojects/packagefiles/${subname}/meson.build subprojects/${subname}-${subversion}
|
||||||
|
}
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
_prepare_subproject syn ${_syn_version}
|
||||||
|
_prepare_subproject proc-macro2 ${_proc_macro_version}
|
||||||
|
_prepare_subproject quote ${_quote_version}
|
||||||
|
_prepare_subproject unicode-ident ${_unicode_ident_version}
|
||||||
|
_prepare_subproject paste ${_paste_version}
|
||||||
|
}
|
||||||
|
|
||||||
post_configure() {
|
post_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
find -iname "*.ninja" -exec sed -i "{}" \
|
find -iname "*.ninja" -exec sed -i "{}" \
|
||||||
|
@ -335,6 +373,14 @@ mesa-vulkan-intel_package() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mesa-vulkan-nouveau_package() {
|
||||||
|
short_desc="Mesa Nouveau Vulkan driver"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/share/vulkan/icd.d/nouveau*.json"
|
||||||
|
vmove "usr/lib/libvulkan_nouveau*.so"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mesa-vulkan-radeon_package() {
|
mesa-vulkan-radeon_package() {
|
||||||
short_desc="Mesa Radeon Vulkan driver"
|
short_desc="Mesa Radeon Vulkan driver"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -429,7 +475,7 @@ mesa-nouveau-dri_package() {
|
||||||
short_desc="Mesa DRI drivers for NVIDIA GPUs (transitional dummy package)"
|
short_desc="Mesa DRI drivers for NVIDIA GPUs (transitional dummy package)"
|
||||||
depends="mesa-dri"
|
depends="mesa-dri"
|
||||||
if [ "$_have_hwdec" ]; then
|
if [ "$_have_hwdec" ]; then
|
||||||
depends+=" mesa-vaapi mesa-vdpau"
|
depends+=" mesa-vaapi mesa-vdpau mesa-vulkan-nouveau"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue