mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-util/mesa_clc: Version bump to 26.0.0
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -10,3 +10,4 @@ DIST mesa-25.3.2.tar.xz 43373712 BLAKE2B f584ce53e1062657d2776e872a8fc9fc83cd209
|
||||
DIST mesa-25.3.3.tar.xz 43385312 BLAKE2B 1f380c2fbd7c267a68757fc0d32272daddc4c376a65afda7df4e7a24a9597558ba8e93678f7163499e38d724063eb4446820ac43983a390ac34b15870c83009b SHA512 232b39f5035f8a65c8f815c8b524e3570f229673a85cd3591fbab9136c80b4ab922dc959f51a9d0a11e91cc66f8cf7f30cd9b846bb9e1607e3a6c820d5c8045a
|
||||
DIST mesa-25.3.4.tar.xz 43415708 BLAKE2B 9fd20df3011526301f3700dfeaa84b14fb3b6aa897d5361584c82048a0b2bb3fb6430d6e1be574a6768aeaf50dce35528bf058c396d743338ad4172d4212817e SHA512 3043bebebebc90ba443bbc96d71fbae41c76504d54ff6a44a48ad7c3a132db09e3ad1ae607c49f1d58b724a8b6e4263b68ee5722f8b98328481eb2e82164ac3a
|
||||
DIST mesa-25.3.5.tar.xz 43473072 BLAKE2B 284bc47b27cdf4a8dac247b02ed8d0950009d8a2b72247bea1c938fc9ea7fa184c3acd2c077d8908a5445452d8eec2bbf02b704a0b30c5d3723a71f3fb64e2d5 SHA512 3db3d3c98bf476a5827705b82733d9964ec511b30882ec7e9edaddc65a5dea5e6bfb33bdcd4f97752d7a3ae9e306e8703982686cbd869567b4194decdb2f5a89
|
||||
DIST mesa-26.0.0.tar.xz 43776320 BLAKE2B 28193a6e5ddcb8babe5176a23e4e0ccb32b2ab362e99f9755d26868483d2f19d96ebce8a6ff023ebc5c2a5134c962486758e6e5bd95052de6ba18bcd038ad438 SHA512 d39d190d0a17306f0aa69033e38dd8cf458dbf8da483b768841e2dc681dd670735999b212fbe0b29be839702a20750c87d6587bd925dca10693950830a17cd55
|
||||
|
||||
123
dev-util/mesa_clc/mesa_clc-26.0.0.ebuild
Normal file
123
dev-util/mesa_clc/mesa_clc-26.0.0.ebuild
Normal file
@@ -0,0 +1,123 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {18..21} )
|
||||
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=(
|
||||
-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
|
||||
}
|
||||
Reference in New Issue
Block a user