games-emulation/rpcs3: update live

- add fusion submodule
- add opencv USE flag
- fix build with GCC 15

Closes: https://bugs.gentoo.org/946346
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2024-12-17 00:31:48 +09:00
parent 45c332c43a
commit 348a0f435e
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
2 changed files with 12 additions and 2 deletions

View File

@ -9,6 +9,7 @@
<flag name="discord">Enables Discord Rich Presence</flag>
<flag name="faudio">Add faudio sound backend support</flag>
<flag name="llvm">Use llvm backend for PPU cache generation</flag>
<flag name="opencv">Enable PS Move support</flag>
<flag name="vulkan">Build vulkan renderer</flag>
</use>
</pkgmetadata>

View File

@ -20,6 +20,7 @@ if [[ ${PV} == "9999" ]]; then
EGIT_SUBMODULES=(
'asmjit' '3rdparty/glslang' '3rdparty/miniupnp/miniupnp' '3rdparty/rtmidi/rtmidi' '3rdparty/wolfssl'
'3rdparty/SoundTouch/soundtouch' '3rdparty/zstd/zstd' '3rdparty/stblib/stb' '3rdparty/OpenAL/openal-soft'
'3rdparty/fusion/fusion'
)
# Delete sources when ensuring yaml-cpp compiled with fexceptions
EGIT_SUBMODULES+=( '3rdparty/yaml-cpp' )
@ -40,7 +41,7 @@ fi
LICENSE="GPL-2"
SLOT="0"
IUSE="discord faudio +llvm vulkan wayland"
IUSE="discord faudio +llvm opencv vulkan wayland"
DEPEND="
app-arch/p7zip
@ -52,6 +53,7 @@ DEPEND="
dev-qt/qtbase:6[concurrent,dbus,gui,widgets]
dev-qt/qtmultimedia:6
dev-qt/qtsvg:6
media-libs/alsa-lib
media-libs/cubeb
media-libs/glew
media-libs/libglvnd
@ -62,7 +64,9 @@ DEPEND="
llvm-core/llvm:=
sys-libs/zlib
virtual/libusb:1
x11-libs/libX11
faudio? ( app-emulation/faudio )
opencv? ( media-libs/opencv )
vulkan? ( media-libs/vulkan-loader[wayland?] )
wayland? ( dev-libs/wayland )
"
@ -124,6 +128,10 @@ src_prepare() {
# sed -i -e 's/3rdparty::yaml-cpp/yaml-cpp/' rpcs3/Emu/CMakeLists.txt \
# rpcs3/rpcs3qt/CMakeLists.txt || die
# Fix build with GCC 15
# https://github.com/KhronosGroup/glslang/commit/e40c14a3e007fac0e4f2e4164fdf14d1712355bd
sed -i '/<algorithm>/a#include <cstdint>' 3rdparty/glslang/glslang/SPIRV/SpvBuilder.h || die
cmake_src_prepare
}
@ -143,12 +151,13 @@ src_configure() {
-DUSE_SYSTEM_ZLIB=ON
-DUSE_DISCORD_RPC=$(usex discord)
-DUSE_FAUDIO=$(usex faudio)
-DUSE_SYSTEM_OPENCV=$(usex opencv)
-DUSE_VULKAN=$(usex vulkan)
-DWITH_LLVM=$(usex llvm)
$(cmake_use_find_package wayland Wayland)
)
# 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