Skip to content

Commit

Permalink
media-libs/wivrn: adapt for upstream changes
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Nicolas <[email protected]>
  • Loading branch information
xytovl committed Nov 29, 2024
1 parent 57763ad commit 6632994
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
3 changes: 3 additions & 0 deletions media-libs/wivrn/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
31 changes: 19 additions & 12 deletions media-libs/wivrn/wivrn-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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="
Expand All @@ -63,6 +66,7 @@ BDEPEND="
gui? (
gnome-base/librsvg
)
dev-util/vulkan-headers
"

if [[ ${PV} == 9999 ]]; then
Expand All @@ -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"
}

Expand All @@ -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
Expand Down

0 comments on commit 6632994

Please sign in to comment.