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 25.1.6
Signed-off-by: Matt Turner <mattst88@gentoo.org>
This commit is contained in:
@@ -2,4 +2,5 @@ DIST mesa-25.0.7.tar.xz 46849080 BLAKE2B d5f4f8f8ff0ad934c23ba3202bfed9f35097db7
|
||||
DIST mesa-25.1.3.tar.xz 47013904 BLAKE2B a61698b51b769aea6926192f9a42459449a14f4d732717866814e6917a8db262ca00a0de3cd12fb6d3d6be897d2e7df34d011f29a54774efd431e987dda399e1 SHA512 20b72ac4e39e559e36be07f003707cf5e25c5ebac22746d71438edecb9d911f5341373b1632ff08c00b57ac15fc880ce5a203ab9165e5e71057816be31344fd7
|
||||
DIST mesa-25.1.4.tar.xz 47036764 BLAKE2B f50c5fb0121dc821d604fca9854899c9fef16f407e47a5e426e35f86e90750884bb40aa489305840988ff3e30cdf62d56c2f96f04f456c1606d11695642c6586 SHA512 b97a0fa185181e86ea39bf71a6031edf9e9477378aba2c1ff6dbe88399cc9f7dc728591b49918c0dccb170dce11335b2b8fa015c7b7495f2e166b295d47fd343
|
||||
DIST mesa-25.1.5.tar.xz 47082300 BLAKE2B 414fcbd14113474664060417bf349c003c2c1da2781f11ec2c76dc22d8752ed50682414ffb11d313c3d15dbe772fd664a1cf5a383c739a41d0e67d30c8ed1686 SHA512 ac44aab7ba0aa22f054c6a50fbb92fea5e78ebaea3ed7b4a6f652e1c894375cc8bb383e94390b1b0b956a07b950b0edfa718fb4235b878292246532f59373552
|
||||
DIST mesa-25.1.6.tar.xz 47114740 BLAKE2B 7f669ebca6ea528b1b216cd91f462dc4a56cf459d14b83315e0848442f704ada2843aafe3d528daa9933a5a4e69b6481c64ec10b9e3b8f70343e0fccc96b8951 SHA512 f6ee07d1a44095106463d0fcef18cf3953b36f86ffda1a1549dcbb8c1a89189f0cbbe66bf556d594140e9a855583972774251f2c0763f73fce77155f18ae6d2b
|
||||
DIST mesa-25.2.0-rc1.tar.xz 43438880 BLAKE2B d71a16f5a5e3450e7e504039209a131438b5eadf0549713681ad2eaffe2b7aeff51b552c91a04fd682ea90b284bf15ccba62f19abe85a6303e30bd04636b6e07 SHA512 40e397bec45280c71db3bbe5bb1d3470b9a6475596b67b39653a9751d6d10087335b32499158e7b025a1ca057247880b8fb3b8a0e072d26a74c9a5af0313fecd
|
||||
|
||||
123
dev-util/mesa_clc/mesa_clc-25.1.6.ebuild
Normal file
123
dev-util/mesa_clc/mesa_clc-25.1.6.ebuild
Normal 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..20} )
|
||||
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 ~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
|
||||
>=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
|
||||
}
|
||||
Reference in New Issue
Block a user