commit: 7b06ba9d0e31f7218cc5c0f3e712c437caacc298 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Sun Mar 17 15:45:39 2024 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Sun Mar 17 16:34:05 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b06ba9d
net-misc/freerdp: enable wayland only with client Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> net-misc/freerdp/freerdp-2.11.5-r10.ebuild | 18 ++++++++++++++---- net-misc/freerdp/freerdp-2.9999.ebuild | 18 ++++++++++++++---- net-misc/freerdp/freerdp-3.4.0-r10.ebuild | 18 ++++++++++++++---- net-misc/freerdp/freerdp-9999.ebuild | 18 ++++++++++++++---- 4 files changed, 56 insertions(+), 16 deletions(-) diff --git a/net-misc/freerdp/freerdp-2.11.5-r10.ebuild b/net-misc/freerdp/freerdp-2.11.5-r10.ebuild index febcc0e3d5c5..e3c30486ef78 100644 --- a/net-misc/freerdp/freerdp-2.11.5-r10.ebuild +++ b/net-misc/freerdp/freerdp-2.11.5-r10.ebuild @@ -80,9 +80,11 @@ COMMON_DEPEND=" ) smartcard? ( sys-apps/pcsc-lite ) systemd? ( sys-apps/systemd:0= ) - wayland? ( - dev-libs/wayland - x11-libs/libxkbcommon + client? ( + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) ) X? ( x11-libs/libX11 @@ -108,6 +110,14 @@ option() { usex "$1" ON OFF } +option_client() { + if use client; then + option "$1" + else + echo OFF + fi +} + src_configure() { # bug #881695 filter-lto @@ -141,7 +151,7 @@ src_configure() { -DWITH_X11=$(option X) -DWITH_XINERAMA=$(option xinerama) -DWITH_XV=$(option xv) - -DWITH_WAYLAND=$(option wayland) + -DWITH_WAYLAND=$(option_client wayland) -DWITH_WINPR_TOOLS=$(option tools) ) cmake_src_configure diff --git a/net-misc/freerdp/freerdp-2.9999.ebuild b/net-misc/freerdp/freerdp-2.9999.ebuild index 018ae103d0e0..035df26f5b1e 100644 --- a/net-misc/freerdp/freerdp-2.9999.ebuild +++ b/net-misc/freerdp/freerdp-2.9999.ebuild @@ -80,9 +80,11 @@ COMMON_DEPEND=" ) smartcard? ( sys-apps/pcsc-lite ) systemd? ( sys-apps/systemd:0= ) - wayland? ( - dev-libs/wayland - x11-libs/libxkbcommon + client? ( + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) ) X? ( x11-libs/libX11 @@ -103,6 +105,14 @@ option() { usex "$1" ON OFF } +option_client() { + if use client; then + option "$1" + else + echo OFF + fi +} + src_configure() { # bug #881695 filter-lto @@ -136,7 +146,7 @@ src_configure() { -DWITH_X11=$(option X) -DWITH_XINERAMA=$(option xinerama) -DWITH_XV=$(option xv) - -DWITH_WAYLAND=$(option wayland) + -DWITH_WAYLAND=$(option_client wayland) -DWITH_WINPR_TOOLS=$(option tools) ) cmake_src_configure diff --git a/net-misc/freerdp/freerdp-3.4.0-r10.ebuild b/net-misc/freerdp/freerdp-3.4.0-r10.ebuild index 93c7a794de74..1821299544d6 100644 --- a/net-misc/freerdp/freerdp-3.4.0-r10.ebuild +++ b/net-misc/freerdp/freerdp-3.4.0-r10.ebuild @@ -86,9 +86,11 @@ COMMON_DEPEND=" sys-apps/pcsc-lite ) systemd? ( sys-apps/systemd:0= ) - wayland? ( - dev-libs/wayland - x11-libs/libxkbcommon + client? ( + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) ) X? ( x11-libs/libX11 @@ -109,6 +111,14 @@ option() { usex "$1" ON OFF } +option_client() { + if use client; then + option "$1" + else + echo OFF + fi +} + src_configure() { # bug #881695 filter-lto @@ -152,7 +162,7 @@ src_configure() { -DWITH_X11=$(option X) -DWITH_XINERAMA=$(option xinerama) -DWITH_XV=$(option xv) - -DWITH_WAYLAND=$(option wayland) + -DWITH_WAYLAND=$(option_client wayland) -DWITH_WEBVIEW=OFF -DWITH_WINPR_TOOLS=$(option tools) ) diff --git a/net-misc/freerdp/freerdp-9999.ebuild b/net-misc/freerdp/freerdp-9999.ebuild index 93c7a794de74..1821299544d6 100644 --- a/net-misc/freerdp/freerdp-9999.ebuild +++ b/net-misc/freerdp/freerdp-9999.ebuild @@ -86,9 +86,11 @@ COMMON_DEPEND=" sys-apps/pcsc-lite ) systemd? ( sys-apps/systemd:0= ) - wayland? ( - dev-libs/wayland - x11-libs/libxkbcommon + client? ( + wayland? ( + dev-libs/wayland + x11-libs/libxkbcommon + ) ) X? ( x11-libs/libX11 @@ -109,6 +111,14 @@ option() { usex "$1" ON OFF } +option_client() { + if use client; then + option "$1" + else + echo OFF + fi +} + src_configure() { # bug #881695 filter-lto @@ -152,7 +162,7 @@ src_configure() { -DWITH_X11=$(option X) -DWITH_XINERAMA=$(option xinerama) -DWITH_XV=$(option xv) - -DWITH_WAYLAND=$(option wayland) + -DWITH_WAYLAND=$(option_client wayland) -DWITH_WEBVIEW=OFF -DWITH_WINPR_TOOLS=$(option tools) )