Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: games-emulation/flycast/
Date: Wed, 21 Sep 2022 19:44:07
Message-Id: 1663644554.55c93c959734b5d180f2c35e9d3cefa5c81635e7.flow@gentoo
1 commit: 55c93c959734b5d180f2c35e9d3cefa5c81635e7
2 Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
3 AuthorDate: Tue Sep 20 03:29:14 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 20 03:29:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=55c93c95
7
8 games-emulation/flycast: changes to submodules and build system
9
10 Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
11
12 games-emulation/flycast/flycast-9999.ebuild | 12 +++++++++++-
13 1 file changed, 11 insertions(+), 1 deletion(-)
14
15 diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
16 index 8e597f576..eefcdbb67 100644
17 --- a/games-emulation/flycast/flycast-9999.ebuild
18 +++ b/games-emulation/flycast/flycast-9999.ebuild
19 @@ -10,7 +10,7 @@ inherit cmake git-r3 lua-single xdg
20 DESCRIPTION="Sega Dreamcast, Naomi and Atomiswave emulator"
21 HOMEPAGE="https://github.com/flyinghead/flycast"
22 EGIT_REPO_URI="https://github.com/flyinghead/flycast"
23 -EGIT_SUBMODULES=( 'core/deps/breakpad' )
24 +EGIT_SUBMODULES=( 'core/deps/breakpad' 'core/deps/volk' 'core/deps/VulkanMemoryAllocator' )
25
26 LICENSE="GPL-2"
27 SLOT="0"
28 @@ -81,6 +81,16 @@ src_prepare() {
29 # Ensure static libs are not built
30 sed -i -e '/BUILD_SHARED_LIBS/d' CMakeLists.txt
31
32 + # Vulkan-header
33 + sed -i -e '/add_subdirectory(core.*Vulkan-Headers)$/,/Vulkan::Headers/d' \
34 + -e '/core\/deps\/Vulkan-Headers\/include)/d' CMakeLists.txt
35 + # local fix for < 1.3.224
36 + sed -i -e '/^1,$/d' core/rend/vulkan/compiler.cpp
37 + sed -i -e '/swapchainExtent = /{s/= /&static_cast<VkExtent2D>(/;s/;/);/}' core/rend/vulkan/vulkan_context.cpp
38 +
39 + # Do not use ccache
40 + sed -i -e '/find_program(CCACHE_PROGRAM ccache)/d' CMakeLists.txt
41 +
42 cmake_src_prepare
43 }