git: 2b572e9b4f09 - main - x11-wm/plasma5-kwin: add option PIPEWIRE to allow build without pipewire
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 09 Jan 2024 14:12:23 UTC
The branch main has been updated by vvd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2b572e9b4f09c26fba986db6a625405cc2accea4
commit 2b572e9b4f09c26fba986db6a625405cc2accea4
Author: Vladimir Druzenko <vvd@FreeBSD.org>
AuthorDate: 2024-01-09 14:09:40 +0000
Commit: Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-01-09 14:09:40 +0000
x11-wm/plasma5-kwin: add option PIPEWIRE to allow build without pipewire
Default ON - same as was before.
Approved by: arrowd (kde, mentor)
Differential Revision: https://reviews.freebsd.org/D41863
---
x11-wm/plasma5-kwin/Makefile | 9 +++++++--
x11-wm/plasma5-kwin/files/patch-CMakeLists.txt | 17 +++++++++++++++++
2 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/x11-wm/plasma5-kwin/Makefile b/x11-wm/plasma5-kwin/Makefile
index 1f82fa16f473..2d6830b7666b 100644
--- a/x11-wm/plasma5-kwin/Makefile
+++ b/x11-wm/plasma5-kwin/Makefile
@@ -22,8 +22,7 @@ LIB_DEPENDS= libdrm.so:graphics/libdrm \
libxcb-image.so:x11/xcb-util-image \
libxcb-keysyms.so:x11/xcb-util-keysyms \
libxkbcommon.so:x11/libxkbcommon \
- libxcvt.so:x11/libxcvt \
- libpipewire-0.3.so:multimedia/pipewire
+ libxcvt.so:x11/libxcvt
BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \
xwayland-devel>0:x11-servers/xwayland-devel \
wayland-protocols>0:graphics/wayland-protocols \
@@ -55,6 +54,12 @@ SHEBANG_FILES= kconf_update/*.py \
kconf_update/*.pl \
src/effects/strip-effect-metadata.py
+OPTIONS_DEFINE= PIPEWIRE
+OPTIONS_DEFAULT= PIPEWIRE
+PIPEWIRE_DESC= Required for Wayland screencasting
+PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire
+PIPEWIRE_CMAKE_BOOL= KWIN_BUILD_PIPEWIRE
+
# A (hopefully) temporary workaround for
# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2026
post-patch:
diff --git a/x11-wm/plasma5-kwin/files/patch-CMakeLists.txt b/x11-wm/plasma5-kwin/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..73169cc0813a
--- /dev/null
+++ b/x11-wm/plasma5-kwin/files/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -394,9 +394,12 @@
+ HAVE_SCHED_RESET_ON_FORK
+ "Required for running kwin_wayland with real-time scheduling")
+
+
+-pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3>=0.3.29)
+-add_feature_info(PipeWire PipeWire_FOUND "Required for Wayland screencasting")
++option(KWIN_BUILD_PIPEWIRE "Required for Wayland screencasting" ON)
++if (KWIN_BUILD_PIPEWIRE)
++ pkg_check_modules(PipeWire IMPORTED_TARGET libpipewire-0.3>=0.3.29 REQUIRED)
++ add_feature_info(PipeWire PipeWire_FOUND "Required for Wayland screencasting")
++endif()
+
+ if (KWIN_BUILD_NOTIFICATIONS)
+ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS Notifications)