diff options
author | 2024-03-09 14:18:42 +0900 | |
---|---|---|
committer | 2024-03-09 15:02:08 +0900 | |
commit | 3eac696ec8007e6ee3d30a53349f898c069e2cf3 (patch) | |
tree | 6c8e9aa8cf50ea455e63f72b01e9d03934fb235f /games-emulation | |
parent | dev-util/distribution-gpg-keys: drop 1.101 (diff) | |
download | guru-3eac696ec8007e6ee3d30a53349f898c069e2cf3.tar.gz guru-3eac696ec8007e6ee3d30a53349f898c069e2cf3.tar.bz2 guru-3eac696ec8007e6ee3d30a53349f898c069e2cf3.zip |
games-emulation/rpcs3: unbundle glslang
It needs a specific version of vulkan sdks.
Bug: https://bugs.gentoo.org/926213
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
Diffstat (limited to 'games-emulation')
-rw-r--r-- | games-emulation/rpcs3/rpcs3-9999.ebuild | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/games-emulation/rpcs3/rpcs3-9999.ebuild b/games-emulation/rpcs3/rpcs3-9999.ebuild index 9d29476c8c..d2202eaaf4 100644 --- a/games-emulation/rpcs3/rpcs3-9999.ebuild +++ b/games-emulation/rpcs3/rpcs3-9999.ebuild @@ -8,7 +8,7 @@ inherit cmake flag-o-matic git-r3 xdg DESCRIPTION="PS3 emulator/debugger" HOMEPAGE="https://rpcs3.net/" EGIT_REPO_URI="https://github.com/RPCS3/rpcs3" -EGIT_SUBMODULES=( 'asmjit' '3rdparty/miniupnp/miniupnp' '3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl' +EGIT_SUBMODULES=( 'asmjit' '3rdparty/glslang' '3rdparty/miniupnp/miniupnp' '3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl' '3rdparty/SoundTouch/soundtouch' ) # Delete sources when ensuring yaml-cpp compiled with fexceptions EGIT_SUBMODULES+=( '3rdparty/yaml-cpp' ) @@ -40,10 +40,7 @@ DEPEND=" alsa? ( media-libs/alsa-lib ) faudio? ( app-emulation/faudio ) pulseaudio? ( media-libs/libpulse ) - vulkan? ( - ~dev-util/glslang-1.3.268 - ~media-libs/vulkan-loader-1.3.268 - ) + vulkan? ( media-libs/vulkan-loader[wayland?] ) wayland? ( dev-libs/wayland ) " RDEPEND="${DEPEND}" @@ -75,14 +72,6 @@ src_prepare() { # sed -i -e 's/3rdparty::yaml-cpp/yaml-cpp/' rpcs3/Emu/CMakeLists.txt \ # rpcs3/rpcs3qt/CMakeLists.txt || die - # Unbundle glslang SPIRV - sed -i -e '/add_subdirectory(glslang/d' \ - -e '/add_subdirectory(SPIRV/d' \ - -e '/if(VULKAN_FOUND)/afind_library(SPIRV libSPIRV.so)\nfind_library(SPIRV-Tools-opt libSPIRV-Tools-opt.so)\n' \ - -e '/target_link_libraries.*SPIRV/{s/SPIRV-Tools-opt/${&}/;s/SPIRV /${SPIRV} /}' \ - 3rdparty/CMakeLists.txt || die - sed -i -e '/#include "SPIRV/{s:":<glslang/:;s/"/>/}' rpcs3/Emu/RSX/VK/VKCommonDecompiler.cpp || die - cmake_src_prepare } @@ -105,7 +94,10 @@ src_configure() { -DUSE_VULKAN=$(usex vulkan) -DWITH_LLVM=$(usex llvm) ) + # These options are defined conditionally to suppress QA notice use faudio && mycmakeargs+=( -DUSE_SYSTEM_FAUDIO=$(usex faudio) ) + use vulkan && mycmakeargs+=( $(cmake_use_find_package wayland Wayland) ) + cmake_src_configure sed -i -e 's/FFMPEG_LIB_AVFORMAT-NOTFOUND/avformat/' -e 's/FFMPEG_LIB_AVCODEC-NOTFOUND/avcodec/' \ |