commit: 55c93c959734b5d180f2c35e9d3cefa5c81635e7 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr> AuthorDate: Tue Sep 20 03:29:14 2022 +0000 Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr> CommitDate: Tue Sep 20 03:29:14 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55c93c95
games-emulation/flycast: changes to submodules and build system Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr> games-emulation/flycast/flycast-9999.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild index 8e597f576..eefcdbb67 100644 --- a/games-emulation/flycast/flycast-9999.ebuild +++ b/games-emulation/flycast/flycast-9999.ebuild @@ -10,7 +10,7 @@ inherit cmake git-r3 lua-single xdg DESCRIPTION="Sega Dreamcast, Naomi and Atomiswave emulator" HOMEPAGE="https://github.com/flyinghead/flycast" EGIT_REPO_URI="https://github.com/flyinghead/flycast" -EGIT_SUBMODULES=( 'core/deps/breakpad' ) +EGIT_SUBMODULES=( 'core/deps/breakpad' 'core/deps/volk' 'core/deps/VulkanMemoryAllocator' ) LICENSE="GPL-2" SLOT="0" @@ -81,6 +81,16 @@ src_prepare() { # Ensure static libs are not built sed -i -e '/BUILD_SHARED_LIBS/d' CMakeLists.txt + # Vulkan-header + sed -i -e '/add_subdirectory(core.*Vulkan-Headers)$/,/Vulkan::Headers/d' \ + -e '/core\/deps\/Vulkan-Headers\/include)/d' CMakeLists.txt + # local fix for < 1.3.224 + sed -i -e '/^1,$/d' core/rend/vulkan/compiler.cpp + sed -i -e '/swapchainExtent = /{s/= /&static_cast<VkExtent2D>(/;s/;/);/}' core/rend/vulkan/vulkan_context.cpp + + # Do not use ccache + sed -i -e '/find_program(CCACHE_PROGRAM ccache)/d' CMakeLists.txt + cmake_src_prepare }
