* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2022-01-23 9:27 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2022-01-23 9:27 UTC (permalink / raw
To: gentoo-commits
commit: 540d718213fd6bd8c8e8b8149fefecc849cdaf18
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Sun Jan 23 09:24:11 2022 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Sun Jan 23 09:24:11 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=540d7182
games-emulation/flycast: new ebuild
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 94 +++++++++++++++++++++++++++++
games-emulation/flycast/metadata.xml | 11 ++++
2 files changed, 105 insertions(+)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
new file mode 100644
index 000000000..f20b05693
--- /dev/null
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -0,0 +1,94 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{3..4} )
+
+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' )
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+
+IUSE="alsa ao lua opengl +openmp pulseaudio vulkan"
+
+DEPEND="
+ dev-libs/libzip
+ media-libs/libsdl2
+ net-libs/miniupnpc
+ sys-libs/zlib
+ alsa? ( media-libs/alsa-lib )
+ ao? ( media-libs/libao )
+ lua? ( ${LUA_DEPS} )
+ opengl? ( virtual/opengl )
+ openmp? ( sys-devel/gcc:*[openmp] )
+ pulseaudio? ( media-sound/pulseaudio )
+ vulkan? (
+ dev-util/glslang
+ dev-util/spirv-headers
+ )
+"
+RDEPEND="${DEPEND}"
+BDEPEND=""
+
+REQUIRED_USE="|| ( opengl vulkan ) || ( ao alsa pulseaudio )"
+
+src_unpack() {
+ use lua && EGIT_SUBMODULES+=( 'core/deps/luabridge' )
+ git-r3_src_unpack
+}
+src_prepare() {
+ # Ensure unneeded deps are not bundled
+ for dep in chdr dirent glslang libretro-common libzip miniupnpc oboe patches SDL vixl xxHash; do
+ rm -rf core/deps/${dep}
+ done
+
+ # Skip alsa if flag not enabled
+ use !alsa && sed -i -e '/find_package(ALSA)/d' CMakeLists.txt
+
+ # Skip ao if flag not enabled
+ use !ao && sed -i -e '/pkg_check_modules(AO/d' CMakeLists.txt
+
+ # Skip lua if flag not enabled
+ use !lua && sed -i -e '/find_package(Lua)/d' CMakeLists.txt
+
+ # Skip pulseaudio if flag not enabled
+ use !pulseaudio && sed -i -e '/pkg_check_modules(LIBPULSE/d' CMakeLists.txt
+
+ # Unbundle glslang
+ sed -i -e '/add_subdirectory(core\/deps\/glslang/{N;s/.*/find_library(GLSLANG libglslang.so)\nfind_library(SPIRV libSPIRV.so)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE ${GLSLANG} ${SPIRV})/}' CMakeLists.txt || die
+ sed -i -e '/include.*SPIRV/{s:":<glslang/:;s/"/>/}' core/rend/vulkan/shaders.h \
+ core/rend/vulkan/compiler.cpp || die
+ sed -i -e '/maxMeshViewCountNV/a1,' core/rend/vulkan/compiler.cpp || die
+
+ # Unbundle xxHash
+ sed -i -e '/XXHASH_BUILD_XXHSUM/{N;N;s/.*/target_link_libraries(${PROJECT_NAME} PRIVATE xxhash)/}' CMakeLists.txt || die
+
+ # Unbundle chdr
+ sed -i -e '/add_subdirectory.*chdr/d' -e 's/chdr-static/chdr/' -e 's:core/deps/chdr/include:/usr/include/chdr:' CMakeLists.txt || die
+
+ # Do not use ccache
+ sed -i -e '/find_program(CCACHE_FOUND/d' CMakeLists.txt
+
+ # Ensure static libs are not built
+ sed -i -e '/BUILD_SHARED_LIBS/d' CMakeLists.txt
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DUSE_OPENGL=$(usex opengl)
+ -DUSE_OPENMP=$(usex openmp)
+ -DUSE_VULKAN=$(usex vulkan)
+ -DUSE_HOST_LIBZIP=ON
+ -DWITH_SYSTEM_ZLIB=ON
+ )
+ cmake_src_configure
+}
diff --git a/games-emulation/flycast/metadata.xml b/games-emulation/flycast/metadata.xml
new file mode 100644
index 000000000..52ac37312
--- /dev/null
+++ b/games-emulation/flycast/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <name>mazes-80</name>
+ <email>mazes-80@none.org</email>
+</maintainer>
+<use>
+ <flag name="vulkan">Compile vulkan backend</flag>
+</use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2022-05-18 2:38 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2022-05-18 2:38 UTC (permalink / raw
To: gentoo-commits
commit: dce6f3da4f718b2a368048b19da1964d4e3bcf6a
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Wed May 18 02:34:36 2022 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Wed May 18 02:34:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dce6f3da
games-emulation/flycast: fix missing dependencies
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
index f20b05693..8e597f576 100644
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -19,7 +19,9 @@ KEYWORDS=""
IUSE="alsa ao lua opengl +openmp pulseaudio vulkan"
DEPEND="
+ dev-libs/libchdr
dev-libs/libzip
+ dev-libs/xxhash
media-libs/libsdl2
net-libs/miniupnpc
sys-libs/zlib
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2022-09-20 3:30 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2022-09-20 3:30 UTC (permalink / raw
To: gentoo-commits
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
}
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2023-01-30 10:37 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2023-01-30 10:37 UTC (permalink / raw
To: gentoo-commits
commit: 004c8a95c3a793c888018109818c545481ce4d0f
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Mon Jan 30 10:37:05 2023 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Mon Jan 30 10:37:05 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=004c8a95
games-emulation/flycast: updates
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
index eefcdbb67..f5235a1cc 100644
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -32,7 +32,7 @@ DEPEND="
openmp? ( sys-devel/gcc:*[openmp] )
pulseaudio? ( media-sound/pulseaudio )
vulkan? (
- dev-util/glslang
+ >=dev-util/glslang-1.3.231
dev-util/spirv-headers
)
"
@@ -67,7 +67,6 @@ src_prepare() {
sed -i -e '/add_subdirectory(core\/deps\/glslang/{N;s/.*/find_library(GLSLANG libglslang.so)\nfind_library(SPIRV libSPIRV.so)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE ${GLSLANG} ${SPIRV})/}' CMakeLists.txt || die
sed -i -e '/include.*SPIRV/{s:":<glslang/:;s/"/>/}' core/rend/vulkan/shaders.h \
core/rend/vulkan/compiler.cpp || die
- sed -i -e '/maxMeshViewCountNV/a1,' core/rend/vulkan/compiler.cpp || die
# Unbundle xxHash
sed -i -e '/XXHASH_BUILD_XXHSUM/{N;N;s/.*/target_link_libraries(${PROJECT_NAME} PRIVATE xxhash)/}' CMakeLists.txt || die
@@ -84,9 +83,6 @@ src_prepare() {
# 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
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2023-02-13 15:05 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2023-02-13 15:05 UTC (permalink / raw
To: gentoo-commits
commit: a960b203c4ba687f0eb08e774d919982e791535c
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Mon Feb 13 15:04:48 2023 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Mon Feb 13 15:04:48 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a960b203
games-emulation/flycast: support lasted glslang, force system sdl
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
index f5235a1cc..a77d24c1c 100644
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -67,12 +67,17 @@ src_prepare() {
sed -i -e '/add_subdirectory(core\/deps\/glslang/{N;s/.*/find_library(GLSLANG libglslang.so)\nfind_library(SPIRV libSPIRV.so)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE ${GLSLANG} ${SPIRV})/}' CMakeLists.txt || die
sed -i -e '/include.*SPIRV/{s:":<glslang/:;s/"/>/}' core/rend/vulkan/shaders.h \
core/rend/vulkan/compiler.cpp || die
+ # Crazy commit fix: 8d0654c
+ sed -i -e '/maxMeshViewCountNV/a256,256,128,128,128,128,128,128,4,' \
+ core/rend/vulkan/compiler.cpp || die
# Unbundle xxHash
- sed -i -e '/XXHASH_BUILD_XXHSUM/{N;N;s/.*/target_link_libraries(${PROJECT_NAME} PRIVATE xxhash)/}' CMakeLists.txt || die
+ sed -i -e '/XXHASH_BUILD_XXHSUM/{N;N;s/.*/target_link_libraries(${PROJECT_NAME} PRIVATE xxhash)/}' \
+ CMakeLists.txt || die
# Unbundle chdr
- sed -i -e '/add_subdirectory.*chdr/d' -e 's/chdr-static/chdr/' -e 's:core/deps/chdr/include:/usr/include/chdr:' CMakeLists.txt || die
+ sed -i -e '/add_subdirectory.*chdr/d' -e 's/chdr-static/chdr/' \
+ -e 's:core/deps/chdr/include:/usr/include/chdr:' CMakeLists.txt || die
# Do not use ccache
sed -i -e '/find_program(CCACHE_FOUND/d' CMakeLists.txt
@@ -87,6 +92,9 @@ src_prepare() {
# Do not use ccache
sed -i -e '/find_program(CCACHE_PROGRAM ccache)/d' CMakeLists.txt
+ # Revert crazy commit: #4408aa7
+ sed -i -e '/if(NOT APPLE AND (/s/.*/if( NOT APPLE )/' CMakeLists.txt
+
cmake_src_prepare
}
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2023-06-24 12:08 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2023-06-24 12:08 UTC (permalink / raw
To: gentoo-commits
commit: c8247708a2521c325b84d7bb0e265058427762e8
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Sat Jun 24 12:05:57 2023 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Sat Jun 24 12:05:57 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c8247708
games-emulation/flycast: update vulkan unbundling
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
index a77d24c1c..25e3b4ba5 100644
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -88,6 +88,10 @@ src_prepare() {
# Vulkan-header
sed -i -e '/add_subdirectory(core.*Vulkan-Headers)$/,/Vulkan::Headers/d' \
-e '/core\/deps\/Vulkan-Headers\/include)/d' CMakeLists.txt
+ sed -i -e 's:SPIRV/GlslangToSpv.h:glslang/&:' core/rend/vulkan/compiler.cpp
+ if use vulkan; then
+ sed -i -e '$atarget_link_libraries(${PROJECT_NAME} PRIVATE glslang-default-resource-limits)' CMakeLists.txt
+ fi
# Do not use ccache
sed -i -e '/find_program(CCACHE_PROGRAM ccache)/d' CMakeLists.txt
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
@ 2023-07-13 7:08 Samuel Bauer
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Bauer @ 2023-07-13 7:08 UTC (permalink / raw
To: gentoo-commits
commit: 8500b40fb62863668b9794ce88f506773a215d48
Author: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
AuthorDate: Thu Jul 13 07:08:26 2023 +0000
Commit: Samuel Bauer <samuel.bauer <AT> yahoo <DOT> fr>
CommitDate: Thu Jul 13 07:08:26 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8500b40f
games-emulation/flycast: depend on libpulse
Signed-off-by: Samuel Bauer <samuel.bauer <AT> yahoo.fr>
games-emulation/flycast/flycast-9999.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
index 25e3b4ba5..e1dcc5e02 100644
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ b/games-emulation/flycast/flycast-9999.ebuild
@@ -30,7 +30,7 @@ DEPEND="
lua? ( ${LUA_DEPS} )
opengl? ( virtual/opengl )
openmp? ( sys-devel/gcc:*[openmp] )
- pulseaudio? ( media-sound/pulseaudio )
+ pulseaudio? ( media-libs/libpulse )
vulkan? (
>=dev-util/glslang-1.3.231
dev-util/spirv-headers
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/
2024-05-21 21:33 [gentoo-commits] repo/proj/guru:master " Julien Roy
@ 2024-05-21 21:29 ` Julien Roy
0 siblings, 0 replies; 8+ messages in thread
From: Julien Roy @ 2024-05-21 21:29 UTC (permalink / raw
To: gentoo-commits
commit: 5886ae85c96e0eadfc074ebd27fc65f52e887bf1
Author: Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Tue May 21 21:27:07 2024 +0000
Commit: Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Tue May 21 21:29:23 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5886ae85
games-emulation/flycast: treeclean
Bug: https://bugs.gentoo.org/926271
Bug: https://bugs.gentoo.org/924444
Signed-off-by: Julien Roy <julien <AT> jroy.ca>
games-emulation/flycast/flycast-9999.ebuild | 112 ----------------------------
games-emulation/flycast/metadata.xml | 14 ----
2 files changed, 126 deletions(-)
diff --git a/games-emulation/flycast/flycast-9999.ebuild b/games-emulation/flycast/flycast-9999.ebuild
deleted file mode 100644
index 3cea66b7a..000000000
--- a/games-emulation/flycast/flycast-9999.ebuild
+++ /dev/null
@@ -1,112 +0,0 @@
-# Copyright 2022-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-LUA_COMPAT=( lua5-{3..4} )
-
-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' 'core/deps/volk' 'core/deps/VulkanMemoryAllocator' )
-
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE="alsa ao lua opengl +openmp pulseaudio vulkan"
-
-DEPEND="
- dev-libs/libchdr
- dev-libs/libzip
- dev-libs/xxhash
- media-libs/libsdl2
- net-libs/miniupnpc
- sys-libs/zlib
- alsa? ( media-libs/alsa-lib )
- ao? ( media-libs/libao )
- lua? ( ${LUA_DEPS} )
- opengl? ( virtual/opengl )
- openmp? ( sys-devel/gcc:*[openmp] )
- pulseaudio? ( media-libs/libpulse )
- vulkan? (
- >=dev-util/glslang-1.3.231
- dev-util/spirv-headers
- )
-"
-RDEPEND="${DEPEND}"
-
-REQUIRED_USE="|| ( opengl vulkan ) || ( ao alsa pulseaudio )"
-
-src_unpack() {
- use lua && EGIT_SUBMODULES+=( 'core/deps/luabridge' )
- git-r3_src_unpack
-}
-src_prepare() {
- # Ensure unneeded deps are not bundled
- for dep in chdr dirent glslang libretro-common libzip miniupnpc oboe patches SDL vixl xxHash; do
- rm -rf core/deps/${dep}
- done
-
- # Skip alsa if flag not enabled
- use !alsa && sed -i -e '/find_package(ALSA)/d' CMakeLists.txt
-
- # Skip ao if flag not enabled
- use !ao && sed -i -e '/pkg_check_modules(AO/d' CMakeLists.txt
-
- # Skip lua if flag not enabled
- use !lua && sed -i -e '/find_package(Lua)/d' CMakeLists.txt
-
- # Skip pulseaudio if flag not enabled
- use !pulseaudio && sed -i -e '/pkg_check_modules(LIBPULSE/d' CMakeLists.txt
-
- # Unbundle glslang
- sed -i -e '/add_subdirectory(core\/deps\/glslang/{N;s/.*/find_library(GLSLANG libglslang.so)\nfind_library(SPIRV libSPIRV.so)\ntarget_link_libraries(${PROJECT_NAME} PRIVATE ${GLSLANG} ${SPIRV})/}' CMakeLists.txt || die
- sed -i -e '/include.*SPIRV/{s:":<glslang/:;s/"/>/}' core/rend/vulkan/shaders.h \
- core/rend/vulkan/compiler.cpp || die
- # Crazy commit fix: 8d0654c
- sed -i -e '/maxMeshViewCountNV/a256,256,128,128,128,128,128,128,4,' \
- core/rend/vulkan/compiler.cpp || die
-
- # Unbundle xxHash
- sed -i -e '/XXHASH_BUILD_XXHSUM/{N;N;s/.*/target_link_libraries(${PROJECT_NAME} PRIVATE xxhash)/}' \
- CMakeLists.txt || die
-
- # Unbundle chdr
- sed -i -e '/add_subdirectory.*chdr/d' -e 's/chdr-static/chdr/' \
- -e 's:core/deps/chdr/include:/usr/include/chdr:' CMakeLists.txt || die
-
- # Do not use ccache
- sed -i -e '/find_program(CCACHE_FOUND/d' CMakeLists.txt
-
- # 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
- sed -i -e 's:SPIRV/GlslangToSpv.h:glslang/&:' core/rend/vulkan/compiler.cpp
- if use vulkan; then
- sed -i -e '$atarget_link_libraries(${PROJECT_NAME} PRIVATE glslang-default-resource-limits)' CMakeLists.txt
- fi
-
- # Do not use ccache
- sed -i -e '/find_program(CCACHE_PROGRAM ccache)/d' CMakeLists.txt
-
- # Revert crazy commit: #4408aa7
- sed -i -e '/if(NOT APPLE AND (/s/.*/if( NOT APPLE )/' CMakeLists.txt
-
- cmake_src_prepare
-}
-
-src_configure() {
- local mycmakeargs=(
- -DUSE_OPENGL=$(usex opengl)
- -DUSE_OPENMP=$(usex openmp)
- -DUSE_VULKAN=$(usex vulkan)
- -DUSE_HOST_LIBZIP=ON
- -DWITH_SYSTEM_ZLIB=ON
- )
- cmake_src_configure
-}
diff --git a/games-emulation/flycast/metadata.xml b/games-emulation/flycast/metadata.xml
deleted file mode 100644
index 524f53682..000000000
--- a/games-emulation/flycast/metadata.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<maintainer type="person">
- <name>mazes-80</name>
- <email>samuel.bauer@yahoo.fr</email>
-</maintainer>
-<use>
- <flag name="vulkan">Compile vulkan backend</flag>
-</use>
-<upstream>
- <remote-id type="github">flyinghead/flycast</remote-id>
-</upstream>
-</pkgmetadata>
^ permalink raw reply related [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-05-21 21:30 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-30 10:37 [gentoo-commits] repo/proj/guru:dev commit in: games-emulation/flycast/ Samuel Bauer
-- strict thread matches above, loose matches on Subject: below --
2024-05-21 21:33 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-05-21 21:29 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2023-07-13 7:08 Samuel Bauer
2023-06-24 12:08 Samuel Bauer
2023-02-13 15:05 Samuel Bauer
2022-09-20 3:30 Samuel Bauer
2022-05-18 2:38 Samuel Bauer
2022-01-23 9:27 Samuel Bauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox