dev-util/mesa_clc: Version bump to 26.1.1

Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
Matt Turner
2026-05-21 23:50:52 -04:00
parent a07c974976
commit 51ba6a43c7
2 changed files with 125 additions and 0 deletions
+1
View File
@@ -11,3 +11,4 @@ DIST mesa-26.0.3.tar.xz 43855948 BLAKE2B 348df0a426c9e41565bf63c116d2a9b6b7e76b8
DIST mesa-26.0.4.tar.xz 43887688 BLAKE2B f83f98bae3c06f893c551e9d33cc2b655b8b74e8f5a54db0ce4cebec1451ef0fc66263b006a2c205ef2c491da831ae037cacb09fa5364cfd2d95a6ae7b77048f SHA512 ddb59df633116a7ccd9d2d3a2e2009945909e3f774956efcbc032a2f963641cce50d0f319bebdc041df17700aa827aa2ccbc61c9e40b4020de9ff027eab27e23
DIST mesa-26.0.5.tar.xz 43889232 BLAKE2B 594e0737ff10853eac91a45c81db8738874e2d4f61ca2f02229bf62df9d3c133c4e1b605d90c17d17d91df97b78bfdb8051a6e1927b8d7759e4528de0a939f02 SHA512 8aa03a46269b2443be15cbd516d523af78fdd35e5273f5346b9142d2d21e245f6d5fd47e7e90176b0444ea967540eaa7c62d217f599ca5a216ef83244ee97d5c
DIST mesa-26.0.7.tar.xz 43957380 BLAKE2B c4925b0e42660441ed5ee791e9b13a0222e971e5f42b4bcbfa1efba489f14cfa19a8c74a610a78cc3eceb7529ae5fa136f7735a393f288e76a8ee49f79de0957 SHA512 a60aaed37907bcf9edbd68e2a95e5cc95893215c64e91f8fceffa0d3f67fc63e8eb20877fbe9a59dd9df0b7f8bff4e73392085e11414eed8ae4939c4c8691f93
DIST mesa-26.1.1.tar.xz 77544276 BLAKE2B 2acad90126cc381f29024f46f32ee324fef9497ef47ec504d561cbd6580200b6b66e5da3b6d7038bcc801af6690b03844d336dbb2508dd8b0d0cc10dd551382d SHA512 384a7db33d2f06e287337329f2f17503082ba6b1cd876a1884e940fdb6193ffae6d6b14344625256f3b3b39972ad697130a4d2ea25c40979f7aa76c2176f7988
+124
View File
@@ -0,0 +1,124 @@
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {18..22} )
PYTHON_COMPAT=( python3_{11..14} )
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 ~arm ~arm64 ~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
>=virtual/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=(
-Dallow-broken-lto=true
-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
}