dev-util/mesa_clc: Version bump to 25.1.0_rc3

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2025-05-02 13:08:17 -04:00
parent 09801d3317
commit 4cc7ee954a
2 changed files with 124 additions and 0 deletions

View File

@@ -4,3 +4,4 @@ DIST mesa-25.0.2.tar.xz 46705776 BLAKE2B 6e387806e880d518a68b3a8d4cb25071e9d5073
DIST mesa-25.0.3.tar.xz 46736740 BLAKE2B 8b32119756c422b780b466ed4ba60660d2c91f8f460b617f7417e5f3ae2a5cd44a95abedbcdfb8e2f38d99fb2e4f1610586e846fe13b9db979f5156dcc268614 SHA512 a8ddfa3ac31869e82a49d14aaab0659d0496ae77db3f32aa0d5d28de8e1e4cace9fa652451a050fbc79281e8461cd70e86ad464aa387533387187fbcb604aaab
DIST mesa-25.0.4.tar.xz 46770664 BLAKE2B b661bc1534bff848c32c559ecc790fd7770682aa7f35403c2fb50b899ad83dbbafb2baecf0e372972849378a4a539eeafe5e9c9e1497ab4313ebcafa89f6e248 SHA512 562a97bd0374ff2a76f71c848df4fe542f1fc66c420a9101eb4bb1947d00eee4417d9c6f2d1be19638663753785c19384f8a6dc078c3187448ab79413d906152
DIST mesa-25.0.5.tar.xz 46793824 BLAKE2B f17f8c2a733fd3c37f346b9304241dc1d13e01df9c8c723b73b10279dd3c2ebed062ec1f15cdbc8b9936bae840a087b23ac38cae7d8982228d582d468ab8c9c9 SHA512 d65e027829e3bef60bc0e3e71160e6b3721e797e2157c71dbeef0cd6e202f8f8098b3cd41159cd0e96e520eaf92ea49c2c9bb1af1a54867b6a7c551c2197c068
DIST mesa-25.1.0-rc3.tar.xz 46891124 BLAKE2B 3f9733b70b0b0e547421cc14a510a7d4dc8f41da44eed485b7fbba96a015cf80540e32bcfd798e4f6e0e3cc9cefdfd8bd0ef8c23c146e770fbbf4b39d7690a31 SHA512 ddea755adad0434dccdbe6f42d17a8f755e99dea0130be883a45f49aeb63612942ea0a15d15027ece788ab44dd99d78bf96235e6af4d93ab05f2a545097d1467

View File

@@ -0,0 +1,123 @@
# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {18..19} )
PYTHON_COMPAT=( python3_{10..13} )
inherit llvm-r1 meson python-any-r1
MY_PV="${PV/_/-}"
DESCRIPTION="mesa_clc tool used for building OpenCL C to SPIR-V"
HOMEPAGE="https://mesa3d.org/"
if [[ ${PV} == 9999 ]]; then
S="${WORKDIR}/mesa_clc-${MY_PV}"
EGIT_REPO_URI="https://gitlab.freedesktop.org/mesa/mesa.git"
inherit git-r3
else
S="${WORKDIR}/mesa-${MY_PV}"
SRC_URI="https://archive.mesa3d.org/mesa-${MY_PV}.tar.xz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0"
VIDEO_CARDS="asahi panfrost"
for card in ${VIDEO_CARDS}; do
IUSE_VIDEO_CARDS+=" video_cards_${card}"
done
IUSE="${IUSE_VIDEO_CARDS} debug"
RDEPEND="
dev-util/spirv-tools
$(llvm_gen_dep '
dev-util/spirv-llvm-translator:${LLVM_SLOT}
llvm-core/clang:${LLVM_SLOT}=
=llvm-core/libclc-${LLVM_SLOT}*
llvm-core/llvm:${LLVM_SLOT}=
')
"
DEPEND="${RDEPEND}
dev-libs/expat
>=sys-libs/zlib-1.2.8:=
x11-libs/libdrm
"
BDEPEND="
${PYTHON_DEPS}
$(python_gen_any_dep "
>=dev-python/mako-0.8.0[\${PYTHON_USEDEP}]
dev-python/packaging[\${PYTHON_USEDEP}]
dev-python/pyyaml[\${PYTHON_USEDEP}]
")
virtual/pkgconfig
"
python_check_deps() {
python_has_version -b ">=dev-python/mako-0.8.0[${PYTHON_USEDEP}]" &&
python_has_version -b "dev-python/packaging[${PYTHON_USEDEP}]" &&
python_has_version -b "dev-python/pyyaml[${PYTHON_USEDEP}]" || return 1
}
pkg_setup() {
llvm-r1_pkg_setup
python-any-r1_pkg_setup
}
src_configure() {
tools_enable video_cards_asahi asahi
tools_enable video_cards_panfrost panfrost
tools_list() {
local tools="$(sort -u <<< "${1// /$'\n'}")"
echo "${tools//$'\n'/,}"
}
PKG_CONFIG_PATH="$(get_llvm_prefix)/$(get_libdir)/pkgconfig"
use debug && EMESON_BUILDTYPE=debug
local emesonargs=(
-Dllvm=enabled
-Dshared-llvm=enabled
-Dmesa-clc=enabled
-Dinstall-mesa-clc=true
-Dprecomp-compiler=enabled
-Dinstall-precomp-compiler=true
-Dtools=$(tools_list "${TOOLS[*]}")
-Dgallium-drivers=''
-Dvulkan-drivers=''
# Set platforms empty to avoid the default "auto" setting. If
# platforms is empty meson.build will add surfaceless.
-Dplatforms=''
-Dglx=disabled
-Dlibunwind=disabled
-Dzstd=disabled
-Db_ndebug=$(usex debug false true)
)
meson_src_configure
}
src_install() {
dobin "${BUILD_DIR}"/src/compiler/clc/mesa_clc
dobin "${BUILD_DIR}"/src/compiler/spirv/vtn_bindgen2
use video_cards_asahi && dobin "${BUILD_DIR}"/src/asahi/clc/asahi_clc
use video_cards_panfrost && dobin "${BUILD_DIR}"/src/panfrost/clc/panfrost_compile
}
# $1 - VIDEO_CARDS flag (check skipped for "--")
# other args - names of tools to enable
tools_enable() {
if [[ $1 == -- ]] || use $1; then
shift
TOOLS+=("$@")
fi
}