summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-11-02 02:56:01 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-11-02 03:32:41 -0400
commitbadc538a3013607d16632ca551697b3eb462bd74 (patch)
treee67c69f2dd73ad2ae2ff812c309f3919870d8b4f
parentdev-ruby/kpeg: add 1.3.2 (diff)
downloadgentoo-badc538a.tar.gz
gentoo-badc538a.tar.bz2
gentoo-badc538a.zip
dev-games/godot: switch to bundled glslang+vulkan-headers
Similarly to pcsx2, this uses part of the glslang private API and can break easily with the system's copy. Also use bundled vulkan-headers given mismatching with glslang is also volatile. Revbump given it could've built with the old glslang and possibly have ill effects after updating it. Closes: https://bugs.gentoo.org/879111 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
-rw-r--r--dev-games/godot/godot-4.0_beta4-r1.ebuild (renamed from dev-games/godot/godot-4.0_beta4.ebuild)17
1 files changed, 6 insertions, 11 deletions
diff --git a/dev-games/godot/godot-4.0_beta4.ebuild b/dev-games/godot/godot-4.0_beta4-r1.ebuild
index 9a915964766b..b790692736f4 100644
--- a/dev-games/godot/godot-4.0_beta4.ebuild
+++ b/dev-games/godot/godot-4.0_beta4-r1.ebuild
@@ -43,7 +43,6 @@ RDEPEND="
sys-libs/zlib:=
fontconfig? ( media-libs/fontconfig )
gui? (
- dev-util/glslang
media-libs/alsa-lib
media-libs/libglvnd[X]
media-libs/vulkan-loader[X]
@@ -66,10 +65,7 @@ RDEPEND="
webp? ( media-libs/libwebp:= )"
DEPEND="
${RDEPEND}
- gui? (
- dev-util/vulkan-headers
- x11-base/xorg-proto
- )
+ gui? ( x11-base/xorg-proto )
tools? ( test? ( dev-cpp/doctest ) )"
BDEPEND="virtual/pkgconfig"
@@ -91,9 +87,9 @@ src_prepare() {
# use of builtin_ switches can be messy (see below), delete to be sure
local unbundle=(
- doctest embree freetype glslang graphite harfbuzz icu4c libogg libpng
- libtheora libvorbis libwebp mbedtls miniupnpc pcre2 recastnavigation
- volk vulkan/include wslay zlib zstd
+ doctest embree freetype graphite harfbuzz icu4c libogg
+ libpng libtheora libvorbis libwebp mbedtls miniupnpc
+ pcre2 recastnavigation volk wslay zlib zstd
# certs: unused by generated header, but scons panics if not found
)
rm -r "${unbundle[@]/#/thirdparty/}" || die
@@ -138,7 +134,7 @@ src_compile() {
builtin_embree=$(usex !gui yes $(usex !tools yes $(usex !raycast)))
builtin_enet=yes # bundled copy is patched for IPv6+DTLS support
builtin_freetype=no
- builtin_glslang=$(usex !gui)
+ builtin_glslang=yes #879111
builtin_graphite=no
builtin_harfbuzz=no
builtin_icu=no
@@ -162,11 +158,10 @@ src_compile() {
# amd-fsr, basis_universal, cvtt, etcpak, fonts, glad,
# jpeg-compressor, meshoptimizer, minimp3, minizip (patched to
# seek in archives), noise, oidn, openxr, spirv-reflect, thorvg,
- # tinyexr, vhacd, vulkan (minus include/) and the misc directory.
+ # tinyexr, vhacd, vulkan, and the misc directory.
# modules with optional dependencies, "possible" to disable more but
# gets messy and breaks all sorts of features (expected enabled)
- module_glslang_enabled=$(usex gui)
module_gridmap_enabled=$(usex deprecated) # fails without deprecated
module_mono_enabled=no # unhandled
# note raycast is only enabled on amd64+arm64, see raycast/config.py