commit:     85b75b2a5fae9b5c8618bd4d2bedf7914f8673c1
Author:     Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
AuthorDate: Sat Nov 25 13:20:08 2023 +0000
Commit:     Patrick Nicolas <patricknicolas <AT> laposte <DOT> net>
CommitDate: Sat Nov 25 13:20:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=85b75b2a

media-libs/wivrn: update 9999 for upstream changes

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

 media-libs/wivrn/wivrn-9999.ebuild | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/media-libs/wivrn/wivrn-9999.ebuild 
b/media-libs/wivrn/wivrn-9999.ebuild
index c558e3314c..0aa9dc2e12 100644
--- a/media-libs/wivrn/wivrn-9999.ebuild
+++ b/media-libs/wivrn/wivrn-9999.ebuild
@@ -5,7 +5,8 @@ HOMEPAGE="https://github.com/meumeu/WiVRn";
 SLOT="0"
 LICENSE="GPL-3 Apache-2.0 MIT"
 
-IUSE="nvenc vaapi x264"
+IUSE="nvenc systemd vaapi x264"
+REQUIRED_USE="|| ( nvenc vaapi x264 )"
 
 inherit cmake
 
@@ -36,9 +37,22 @@ RDEPEND="
                media-libs/x264
        )
        dev-libs/libbsd
+       media-libs/libpulse
        media-libs/openxr-loader
        net-dns/avahi
-       sys-apps/systemd
+       systemd? (
+               sys-apps/systemd
+       )
+"
+
+BDEPEND="
+       ${RDEPEND}
+       nvenc? (
+               dev-util/nvidia-cuda-toolkit
+       )
+       dev-cpp/eigen
+       dev-cpp/nlohmann_json
+       dev-util/glslang
 "
 
 if [[ ${PV} == 9999 ]]; then
@@ -66,9 +80,14 @@ src_configure() {
        local mycmakeargs=(
                -DGIT_DESC=${GIT_DESC}
                -DWIVRN_BUILD_CLIENT=OFF
+               -DWIVRN_USE_NVENC=$(usex nvenc)
+               -DWIVRN_USE_VAAPI=$(usex vaapi)
+               -DWIVRN_USE_X264=$(usex x264)
+               -DWIVRN_USE_SYSTEMD=$(usex systemd)
                -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
                -DFETCHCONTENT_FULLY_DISCONNECTED=ON
                -DFETCHCONTENT_BASE_DIR=${WORKDIR}
+               -DENABLE_COLOURED_OUTPUT=OFF
        )
 
        cmake_src_configure

Reply via email to