mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
games-emulation/shadPS4: add 0.16.0
Signed-off-by: Ceres <ceres@ceressees.dev>
This commit is contained in:
4 files changed
+263
No files matched your search
@@ -1 +1,2 @@
|
||||
DIST shadPS4-0.15.0.tar.xz 28028876 BLAKE2B 5f89f39a9193e6198fcbe457eec15c8e0bd6ad1f70e02a8c74ae363651fcd2dbc7b2166fca77a16068080b8ba6191ea302a38acd81ad731254a8c1b134e28444 SHA512 cdd4dc5185dc2d98778aa7c9fd4af0b794f8270f4a6d53c994d5e1dc6b9453977170cb4360ed28e23f17e34f049bfe4153a4f36e09d285aa3ba75eb80f2d451a
|
||||
DIST shadPS4-0.16.0.tar.xz 56547168 BLAKE2B 72c5e181bd1fd523b058404a83fac71a72ab062aee315c3149898d51a5fb3bf6bb9d477dd930af8e64ca8a2bb7eaba7518f8158c31d2f2de95684d4cc60c3e77 SHA512 1d6652eb3b22a41f291f2469d47ae4baf50e807e5d38a6b411549637d3279e88d13d3e180b06b562a4a42a142d436539b00b9afc4076070002fc19f4c2d3bc6a
|
||||
@@ -0,0 +1,109 @@
|
||||
Fix CMake 4 Compatibility
|
||||
|
||||
--- a/externals/dear_imgui/examples/example_android_opengl3/CMakeLists.txt
|
||||
+++ b/externals/dear_imgui/examples/example_android_opengl3/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.6)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(ImGuiExample)
|
||||
|
||||
--- a/externals/dear_imgui/examples/example_glfw_vulkan/CMakeLists.txt
|
||||
+++ b/externals/dear_imgui/examples/example_glfw_vulkan/CMakeLists.txt
|
||||
@@ -3,7 +3,7 @@
|
||||
# cd build
|
||||
# cmake -g "Visual Studio 14 2015" ..
|
||||
|
||||
-cmake_minimum_required(VERSION 2.8)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
project(imgui_example_glfw_vulkan C CXX)
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
--- a/externals/discord-rpc/thirdparty/rapidjson/CMakeLists.txt
|
||||
+++ b/externals/discord-rpc/thirdparty/rapidjson/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
|
||||
+CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
|
||||
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules)
|
||||
|
||||
--- a/externals/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt
|
||||
+++ b/externals/discord-rpc/thirdparty/rapidjson/example/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.8)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if(POLICY CMP0054)
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
--- a/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt
|
||||
+++ b/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 2.6.4)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if (POLICY CMP0048)
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
--- a/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt
|
||||
+++ b/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googlemock/CMakeLists.txt
|
||||
@@ -43,7 +43,7 @@
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
project(gmock VERSION 1.9.0 LANGUAGES CXX C)
|
||||
endif()
|
||||
-cmake_minimum_required(VERSION 2.6.4)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if (COMMAND set_up_hermetic_build)
|
||||
set_up_hermetic_build()
|
||||
--- a/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt
|
||||
+++ b/externals/discord-rpc/thirdparty/rapidjson/thirdparty/gtest/googletest/CMakeLists.txt
|
||||
@@ -50,7 +50,7 @@
|
||||
cmake_policy(SET CMP0048 NEW)
|
||||
project(gtest VERSION 1.9.0 LANGUAGES CXX C)
|
||||
endif()
|
||||
-cmake_minimum_required(VERSION 2.6.4)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if (POLICY CMP0063) # Visibility
|
||||
cmake_policy(SET CMP0063 NEW)
|
||||
--- a/externals/sirit/externals/SPIRV-Headers/tests/find_package/CMakeLists.txt
|
||||
+++ b/externals/sirit/externals/SPIRV-Headers/tests/find_package/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(TEST_FIND_PACKAGE LANGUAGES CXX)
|
||||
|
||||
--- a/externals/sirit/externals/SPIRV-Headers/tools/buildHeaders/CMakeLists.txt
|
||||
+++ b/externals/sirit/externals/SPIRV-Headers/tools/buildHeaders/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.0)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
|
||||
|
||||
--- a/externals/zydis/CMakeLists.txt
|
||||
+++ b/externals/zydis/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
||||
+cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
|
||||
# Enable runtime library selection via CMAKE_MSVC_RUNTIME_LIBRARY
|
||||
--- a/externals/zydis/dependencies/zycore/CMakeLists.txt
|
||||
+++ b/externals/zydis/dependencies/zycore/CMakeLists.txt
|
||||
@@ -2,7 +2,7 @@
|
||||
return()
|
||||
endif ()
|
||||
|
||||
-cmake_minimum_required(VERSION 3.9 FATAL_ERROR)
|
||||
+cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL "3.15")
|
||||
# Enable runtime library selection via CMAKE_MSVC_RUNTIME_LIBRARY
|
||||
--- a/externals/ImGuiFileDialog/CMakeLists.txt
|
||||
+++ b/externals/ImGuiFileDialog/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.5)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(ImGuiFileDialog)
|
||||
@@ -0,0 +1,89 @@
|
||||
#Fix executable stack QA warning, and patch CMakeLists.txt to still recognise the patched source file
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -567,13 +567,13 @@
|
||||
src/core/libraries/usbd/emulated/skylander.h
|
||||
)
|
||||
|
||||
-set(FIBER_LIB src/core/libraries/fiber/fiber_context.s
|
||||
+set(FIBER_LIB src/core/libraries/fiber/fiber_context.S
|
||||
src/core/libraries/fiber/fiber.cpp
|
||||
src/core/libraries/fiber/fiber.h
|
||||
src/core/libraries/fiber/fiber_error.h
|
||||
)
|
||||
|
||||
-set_source_files_properties(src/core/libraries/fiber/fiber_context.s PROPERTIES COMPILE_OPTIONS -Wno-unused-command-line-argument)
|
||||
+set_source_files_properties(src/core/libraries/fiber/fiber_context.S PROPERTIES COMPILE_OPTIONS -Wno-unused-command-line-argument)
|
||||
|
||||
set(VDEC_LIB src/core/libraries/videodec/videodec2_impl.cpp
|
||||
src/core/libraries/videodec/videodec2_impl.h
|
||||
--- a/src/core/libraries/fiber/fiber_context.s
|
||||
+++ b/src/core/libraries/fiber/fiber_context.s
|
||||
@@ -119,3 +119,7 @@
|
||||
movl $1, %edi
|
||||
call _sceFiberForceQuit
|
||||
ret
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/externals/libressl/crypto/sha/sha1_amd64_generic.S
|
||||
+++ b/externals/libressl/crypto/sha/sha1_amd64_generic.S
|
||||
@@ -308,3 +308,7 @@
|
||||
popq %rbx
|
||||
|
||||
ret
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/externals/libressl/crypto/sha/sha1_amd64_shani.S
|
||||
+++ b/externals/libressl/crypto/sha/sha1_amd64_shani.S
|
||||
@@ -164,3 +164,7 @@
|
||||
shufmask:
|
||||
.octa 0x000102030405060708090a0b0c0d0e0f
|
||||
.size shufmask,.-shufmask
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/externals/libressl/crypto/sha/sha256_amd64_generic.S
|
||||
+++ b/externals/libressl/crypto/sha/sha256_amd64_generic.S
|
||||
@@ -297,3 +297,7 @@
|
||||
.long 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208
|
||||
.long 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
||||
.size K256,.-K256
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/externals/libressl/crypto/sha/sha256_amd64_shani.S
|
||||
+++ b/externals/libressl/crypto/sha/sha256_amd64_shani.S
|
||||
@@ -203,3 +203,7 @@
|
||||
.long 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208
|
||||
.long 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
|
||||
.size K256,.-K256
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/externals/libressl/crypto/sha/sha512_amd64_generic.S
|
||||
+++ b/externals/libressl/crypto/sha/sha512_amd64_generic.S
|
||||
@@ -302,3 +302,7 @@
|
||||
.quad 0x28db77f523047d84, 0x32caab7b40c72493, 0x3c9ebe0a15c9bebc, 0x431d67c49c100d4c
|
||||
.quad 0x4cc5d4becb3e42b6, 0x597f299cfc657e2a, 0x5fcb6fab3ad6faec, 0x6c44198c4a475817
|
||||
.size K512,.-K512
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
--- a/src/core/libraries/kernel/threads/stack.S
|
||||
+++ b/src/core/libraries/kernel/threads/stack.S
|
||||
@@ -35,3 +35,7 @@
|
||||
popq %r13
|
||||
popq %r12
|
||||
ret
|
||||
+
|
||||
+#if defined(__linux__) && defined(__ELF__)
|
||||
+.section .note.GNU-stack,"",%progbits
|
||||
+#endif
|
||||
@@ -0,0 +1,64 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake flag-o-matic
|
||||
|
||||
DESCRIPTION="PlayStation 4 emulator written in C++"
|
||||
HOMEPAGE="https://shadps4.net"
|
||||
SRC_URI="https://codeberg.org/ceres-sees-all/guru-distfiles/releases/download/${P}-submodules.tar.xz/${P}-submodules.tar.xz -> ${P}.tar.xz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="discord test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
DEPEND="
|
||||
dev-cpp/cli11
|
||||
dev-cpp/magic_enum
|
||||
dev-cpp/nlohmann_json
|
||||
dev-cpp/robin-map
|
||||
dev-cpp/toml11
|
||||
dev-libs/boost
|
||||
dev-libs/libfmt
|
||||
dev-libs/half
|
||||
dev-libs/pugixml
|
||||
dev-libs/stb
|
||||
dev-libs/xbyak
|
||||
dev-libs/xxhash
|
||||
media-libs/imgui
|
||||
media-libs/libsdl3
|
||||
media-libs/libpng
|
||||
media-libs/openal
|
||||
media-libs/sdl3-mixer
|
||||
media-libs/vulkan-layers
|
||||
media-gfx/renderdoc
|
||||
media-video/ffmpeg
|
||||
media-sound/sndio
|
||||
virtual/jack
|
||||
virtual/zlib
|
||||
test? ( dev-cpp/gtest )
|
||||
"
|
||||
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}/${P}-cmake-4.patch"
|
||||
eapply "${FILESDIR}/${P}-executable-stack.patch"
|
||||
mv src/core/libraries/fiber/fiber_context.s src/core/libraries/fiber/fiber_context.S || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
filter-lto
|
||||
append-flags -fno-strict-aliasing
|
||||
|
||||
local mycmakeargs=(
|
||||
-DENABLE_DISCORD_RPC="$(usex discord ON OFF)"
|
||||
-DENABLE_UPDATER=OFF
|
||||
-DENABLE_TESTS="$(usex test ON OFF)"
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in new issue
Block a user