net-misc/moonlight: Tighten up dependencies

Also replace libdrm USE flag with drm for consistency with others.

Signed-off-by: James Le Cuirot <chewi@gentoo.org>
This commit is contained in:
James Le Cuirot
2026-01-01 07:57:35 +00:00
parent 08f01dbb0a
commit ae61dd8eb4
3 changed files with 15 additions and 19 deletions

View File

@@ -10,9 +10,9 @@
</upstream>
<use>
<flag name="cuda">Enable accelerated video rendering on NVIDIA hardware</flag>
<flag name="drm">Enable video rendering via <pkg>x11-libs/libdrm</pkg></flag>
<flag name="embedded">Optimize UI for fullscreen non-desktop usage</flag>
<flag name="glslow">Prefer direct KMS/DRM rendering over EGL/GLES rendering for better performance on some weaker GPUs</flag>
<flag name="libdrm">Enable video rendering via <pkg>x11-libs/libdrm</pkg></flag>
<flag name="soundio">Enable sound output via <pkg>media-libs/libsoundio</pkg> instead of <pkg>media-libs/libsdl2</pkg></flag>
<flag name="vkslow">Prefer hardware YUV-RGB conversion and scaling over Vulkan for better performance on some weaker GPUs</flag>
</use>

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,28 +20,25 @@ HOMEPAGE="https://github.com/moonlight-stream/moonlight-qt"
LICENSE="GPL-3"
SLOT="0"
IUSE="cuda +libdrm embedded glslow soundio +vaapi vdpau vkslow wayland X"
IUSE="cuda +drm embedded glslow soundio +vaapi vdpau vkslow vulkan wayland X"
RDEPEND="
dev-libs/openssl:=
dev-qt/qtbase:6[gui,network]
dev-qt/qtdeclarative:6[svg]
media-libs/libglvnd
media-libs/libplacebo:=
media-libs/libsdl2[gles2,haptic,joystick,kms,sound,video]
media-libs/opus
media-libs/sdl2-ttf
>=media-video/ffmpeg-6:=[cuda?]
libdrm? (
media-video/ffmpeg[drm(-)]
x11-libs/libdrm
)
>=media-video/ffmpeg-6:=[cuda?,drm?,vaapi?,vdpau?,vulkan?]
drm? ( x11-libs/libdrm )
soundio? ( media-libs/libsoundio:= )
vaapi? ( media-libs/libva:=[wayland?,X?] )
vdpau? (
x11-libs/libvdpau
media-libs/libsdl2[X]
)
vulkan? ( media-libs/libplacebo:= )
wayland? ( dev-libs/wayland )
X? ( x11-libs/libX11 )
"
@@ -64,9 +61,10 @@ src_configure() {
CONFIG+="
disable-mmal
$(usex cuda "" disable-cuda)
$(usex libdrm "" disable-libdrm)
$(usex drm "" disable-libdrm)
$(usex vaapi "" disable-libva)
$(usex vdpau "" disable-libvdpau)
$(usex vulkan "" disable-libplacebo)
$(usex wayland "" disable-wayland)
$(usex X "" disable-x11)
$(usev embedded)

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2025 Gentoo Authors
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -20,27 +20,24 @@ HOMEPAGE="https://github.com/moonlight-stream/moonlight-qt"
LICENSE="GPL-3"
SLOT="0"
IUSE="cuda +libdrm embedded glslow +vaapi vdpau vkslow wayland X"
IUSE="cuda +drm embedded glslow +vaapi vdpau vkslow vulkan wayland X"
RDEPEND="
dev-libs/openssl:=
dev-qt/qtbase:6[gui,network]
dev-qt/qtdeclarative:6[svg]
media-libs/libglvnd
media-libs/libplacebo:=
media-libs/libsdl2[gles2,haptic,joystick,kms,sound,video]
media-libs/opus
media-libs/sdl2-ttf
>=media-video/ffmpeg-6:=[cuda?]
libdrm? (
media-video/ffmpeg[drm(-)]
x11-libs/libdrm
)
>=media-video/ffmpeg-6:=[cuda?,drm?,vaapi?,vdpau?,vulkan?]
drm? ( x11-libs/libdrm )
vaapi? ( media-libs/libva:=[wayland?,X?] )
vdpau? (
x11-libs/libvdpau
media-libs/libsdl2[X]
)
vulkan? ( media-libs/libplacebo:= )
wayland? ( dev-libs/wayland )
X? ( x11-libs/libX11 )
"
@@ -60,9 +57,10 @@ src_configure() {
CONFIG+="
disable-mmal
$(usex cuda "" disable-cuda)
$(usex libdrm "" disable-libdrm)
$(usex drm "" disable-libdrm)
$(usex vaapi "" disable-libva)
$(usex vdpau "" disable-libvdpau)
$(usex vulkan "" disable-libplacebo)
$(usex wayland "" disable-wayland)
$(usex X "" disable-x11)
$(usev embedded)