commit:     66329943ed075114af95a56139f3ab5fc693e02b
Author:     Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
AuthorDate: Fri Nov 29 16:36:36 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Fri Nov 29 16:36:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=66329943

media-libs/wivrn: adapt for upstream changes

Signed-off-by: Patrick Nicolas <patricknicolas <AT> laposte.net>

 media-libs/wivrn/metadata.xml      |  3 +++
 media-libs/wivrn/wivrn-9999.ebuild | 31 +++++++++++++++++++------------
 2 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/media-libs/wivrn/metadata.xml b/media-libs/wivrn/metadata.xml
index b46f95196..bce58e605 100644
--- a/media-libs/wivrn/metadata.xml
+++ b/media-libs/wivrn/metadata.xml
@@ -12,6 +12,9 @@
                <flag name="pulseaudio">
                        Enable support for audio sink/source through pulseaudio 
modules 
                </flag>
+               <flag name="vulkan-encode">
+                       Enable support for encoding with vulkan video
+               </flag>
                <flag name="wireshark-plugins">
                        Build the <pkg>net-analyzer/wireshark</pkg> plugin for 
the WiVRn protocol
                </flag>

diff --git a/media-libs/wivrn/wivrn-9999.ebuild 
b/media-libs/wivrn/wivrn-9999.ebuild
index df6aa339d..eca7a94c7 100644
--- a/media-libs/wivrn/wivrn-9999.ebuild
+++ b/media-libs/wivrn/wivrn-9999.ebuild
@@ -10,7 +10,7 @@ HOMEPAGE="https://github.com/WiVRn/WiVRn";
 
 LICENSE="GPL-3 Apache-2.0 MIT"
 SLOT="0"
-IUSE="gui nvenc +pipewire pulseaudio systemd vaapi wireshark-plugins x264"
+IUSE="gui nvenc +pipewire pulseaudio systemd vaapi vulkan-encode 
wireshark-plugins x264"
 REQUIRED_USE="|| ( nvenc vaapi x264 )"
 
 if [[ ${PV} == 9999 ]]; then
@@ -25,29 +25,32 @@ else
 fi
 
 RDEPEND="
-       vaapi? (
-               media-video/ffmpeg[libdrm,vaapi]
-       )
-       x264? (
-               media-libs/x264
-       )
+       dev-libs/glib
        dev-libs/libbsd
+       dev-libs/openssl
+       media-libs/openxr-loader
+       net-dns/avahi
+       x11-libs/libnotify
+       gui? (
+               dev-qt/qtbase:6
+       )
        pipewire? (
                media-video/pipewire
        )
        pulseaudio? (
                media-libs/libpulse
        )
-       media-libs/openxr-loader
-       net-dns/avahi
        systemd? (
                sys-apps/systemd
        )
+       vaapi? (
+               media-video/ffmpeg[libdrm,vaapi]
+       )
        wireshark-plugins? (
                net-analyzer/wireshark
        )
-       gui? (
-               dev-qt/qtbase:6
+       x264? (
+               media-libs/x264
        )
 "
 DEPEND="
@@ -63,6 +66,7 @@ BDEPEND="
        gui? (
                gnome-base/librsvg
        )
+       dev-util/vulkan-headers
 "
 
 if [[ ${PV} == 9999 ]]; then
@@ -71,7 +75,7 @@ if [[ ${PV} == 9999 ]]; then
                default_src_unpack
 
                local MONADO_COMMIT=$(grep "GIT_TAG" "${P}/CMakeLists.txt" | 
awk '{print $2}')
-               git-r3_fetch "${MONADO_REPO_URI}" "${MONADO_COMIT}"
+               git-r3_fetch "${MONADO_REPO_URI}" "${MONADO_COMMIT}"
                git-r3_checkout "${MONADO_REPO_URI}" "${WORKDIR}/monado-src"
        }
 
@@ -98,12 +102,15 @@ src_configure() {
                -DGIT_DESC=${GIT_DESC}
                -DWIVRN_BUILD_CLIENT=OFF
                -DWIVRN_BUILD_SERVER=ON
+               -DWIVRN_OPENXR_MANIFEST_TYPE=relative
                -DWIVRN_BUILD_DASHBOARD=$(usex gui)
                -DWIVRN_BUILD_DISSECTOR=$(usex wireshark-plugins)
+               -DWIVRN_BUILD_WIVRNCTL=$(usex systemd)
                -DWIVRN_USE_PIPEWIRE=$(usex pipewire)
                -DWIVRN_USE_PULSEAUDIO=$(usex pulseaudio)
                -DWIVRN_USE_NVENC=$(usex nvenc)
                -DWIVRN_USE_VAAPI=$(usex vaapi)
+               -DWIVRN_USE_VULKAN_ENCODE=$(usex vulkan-encode)
                -DWIVRN_USE_X264=$(usex x264)
                -DWIVRN_USE_SYSTEMD=$(usex systemd)
                -DWIVRN_USE_SYSTEM_OPENXR=ON

Reply via email to