commit:     d4161fcd734dbad7cedb258b4ae412b8630961e9
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 24 18:23:19 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sat Oct 24 18:23:19 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4161fcd

games-emulation/dolphin: add USE=vulkan

Patch-by: Samuel BAUER
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 games-emulation/dolphin/dolphin-9999.ebuild | 6 +++++-
 games-emulation/dolphin/metadata.xml        | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/games-emulation/dolphin/dolphin-9999.ebuild 
b/games-emulation/dolphin/dolphin-9999.ebuild
index 09ecec7709c..b63534d242d 100644
--- a/games-emulation/dolphin/dolphin-9999.ebuild
+++ b/games-emulation/dolphin/dolphin-9999.ebuild
@@ -24,7 +24,7 @@ HOMEPAGE="https://www.dolphin-emu.org/";
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile 
pulseaudio +qt5 systemd upnp"
+IUSE="alsa bluetooth discord-presence doc +evdev ffmpeg log lto profile 
pulseaudio +qt5 systemd upnp vulkan"
 
 RDEPEND="
        dev-libs/hidapi:0=
@@ -130,6 +130,9 @@ src_prepare() {
 
        l10n_find_plocales_changes "Languages/po/" "" '.po'
        l10n_for_each_disabled_locale_do remove_locale
+
+        # About 50% compile-time speedup
+       use vulkan || sed -i -e '/Externals\/glslang/d' CMakeLists.txt
 }
 
 src_configure() {
@@ -146,6 +149,7 @@ src_configure() {
                -DENABLE_PULSEAUDIO=$(usex pulseaudio)
                -DENABLE_QT=$(usex qt5)
                -DENABLE_SDL=OFF # not supported: #666558
+               -DENABLE_VULKAN=$(usex vulkan)
                -DFASTLOG=$(usex log)
                -DOPROFILING=$(usex profile)
                -DUSE_DISCORD_PRESENCE=$(usex discord-presence)

diff --git a/games-emulation/dolphin/metadata.xml 
b/games-emulation/dolphin/metadata.xml
index 6c45a696633..965b67caf1e 100644
--- a/games-emulation/dolphin/metadata.xml
+++ b/games-emulation/dolphin/metadata.xml
@@ -9,6 +9,7 @@
                <flag name="evdev">Enable evdev input support</flag>
                <flag name="log">Increase logging output</flag>
                <flag name="lto">Add support for link-time optimizations.</flag>
+               <flag name="vulkan">Enable support for Vulkan-based video 
backend.</flag>
        </use>
        <longdescription lang="en">
 Dolphin is a Gamecube and Wii emulator. Most games run perfectly or with minor

Reply via email to