summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/moonlight/moonlight-9999.ebuild')
-rw-r--r--net-misc/moonlight/moonlight-9999.ebuild59
1 files changed, 38 insertions, 21 deletions
diff --git a/net-misc/moonlight/moonlight-9999.ebuild b/net-misc/moonlight/moonlight-9999.ebuild
index 33e79bb06086..b991b6f1e5b0 100644
--- a/net-misc/moonlight/moonlight-9999.ebuild
+++ b/net-misc/moonlight/moonlight-9999.ebuild
@@ -5,7 +5,7 @@ EAPI=8
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/moonlight-stream/moonlight-qt.git"
- EGIT_SUBMODULES=( '*' -libs -soundio )
+ EGIT_SUBMODULES=( '*' -libs -soundio/libsoundio )
inherit git-r3
else
SRC_URI="https://github.com/moonlight-stream/moonlight-qt/releases/download/v${PV}/MoonlightSrc-${PV}.tar.gz"
@@ -19,23 +19,30 @@ DESCRIPTION="NVIDIA GameStream (and Sunshine) client"
HOMEPAGE="https://github.com/moonlight-stream/moonlight-qt"
LICENSE="GPL-3"
SLOT="0"
-IUSE="cuda +libdrm embedded glslow soundio +vaapi vdpau wayland X"
+IUSE="cuda +libdrm embedded glslow qt5 qt6 soundio +vaapi vdpau vkslow wayland X"
+REQUIRED_USE="|| ( qt6 qt5 )"
RDEPEND="
dev-libs/openssl:=
- dev-qt/qtcore:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5
- dev-qt/qtquickcontrols2:5
- dev-qt/qtsvg:5
- dev-qt/qtwidgets:5
media-libs/libglvnd
- media-libs/libpulse
+ media-libs/libplacebo:=
media-libs/libsdl2[gles2,haptic,kms,joystick,sound,video]
media-libs/opus
media-libs/sdl2-ttf
media-video/ffmpeg:=[cuda?,libdrm?]
libdrm? ( x11-libs/libdrm )
+ qt6? (
+ dev-qt/qtbase:6[gui,network]
+ dev-qt/qtdeclarative:6[svg]
+ )
+ !qt6? ( qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtquickcontrols2:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ ) )
soundio? ( media-libs/libsoundio:= )
vaapi? ( media-libs/libva:=[wayland?,X?] )
vdpau? (
@@ -63,18 +70,28 @@ src_prepare() {
}
src_configure() {
- eqmake5 PREFIX="${EPREFIX}/usr" CONFIG+=" \
- $(usex cuda "" disable-cuda) \
- $(usex libdrm "" disable-libdrm) \
- --disable-mmal \
- $(usex vaapi "" disable-libva) \
- $(usex vdpau "" disable-libvdpau) \
- $(usex wayland "" disable-wayland) \
- $(usex X "" disable-x11) \
- $(usev embedded) \
- $(usev glslow) \
- $(usev soundio) \
- "
+ local qmake_args=(
+ PREFIX="${EPREFIX}/usr"
+ CONFIG+="
+ disable-mmal
+ $(usex cuda "" disable-cuda)
+ $(usex libdrm "" disable-libdrm)
+ $(usex vaapi "" disable-libva)
+ $(usex vdpau "" disable-libvdpau)
+ $(usex wayland "" disable-wayland)
+ $(usex X "" disable-x11)
+ $(usev embedded)
+ $(usev glslow)
+ $(usev soundio)
+ $(usev vkslow)
+ "
+ )
+
+ if use qt6; then
+ eqmake6 "${qmake_args[@]//$'\n'}"
+ else
+ eqmake5 "${qmake_args[@]//$'\n'}"
+ fi
}
src_install() {