git: 80e57850134e - main - x11-wm/plasma6-kwin: fix build on old stable

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Fri, 06 Mar 2026 12:04:06 UTC
The branch main has been updated by makc:

URL: https://cgit.FreeBSD.org/ports/commit/?id=80e57850134edbd56fa9a9f6546b59ded0005b66

commit 80e57850134edbd56fa9a9f6546b59ded0005b66
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2026-03-06 12:03:27 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2026-03-06 12:03:27 +0000

    x11-wm/plasma6-kwin: fix build on old stable
    
    PR:             293605
    Reported by:    Martin Birgmeier
---
 x11-wm/plasma6-kwin/Makefile                              |  8 +++++++-
 x11-wm/plasma6-kwin/files/patch-CMakeLists.txt            | 15 +++++++++++++++
 .../files/patch-src_plugins_gamecontroller_CMakeLists.txt |  9 +++++++++
 3 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/x11-wm/plasma6-kwin/Makefile b/x11-wm/plasma6-kwin/Makefile
index 6685a02e253f..f49e8fca56e0 100644
--- a/x11-wm/plasma6-kwin/Makefile
+++ b/x11-wm/plasma6-kwin/Makefile
@@ -52,4 +52,10 @@ EI_DESC=		Emulated input for Wayland
 EI_LIB_DEPENDS=		libei.so:x11/libei
 EI_CMAKE_BOOL=		KWIN_BUILD_EIS
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500050
+LIB_DEPENDS+=	libinotify.so.0:devel/libinotify
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/x11-wm/plasma6-kwin/files/patch-CMakeLists.txt b/x11-wm/plasma6-kwin/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..8f7e264c246b
--- /dev/null
+++ b/x11-wm/plasma6-kwin/files/patch-CMakeLists.txt
@@ -0,0 +1,15 @@
+--- CMakeLists.txt.orig	2026-03-03 09:32:10 UTC
++++ CMakeLists.txt
+@@ -385,6 +385,12 @@ add_feature_info(libevdev libevdev_FOUND "Required for
+ pkg_check_modules(libevdev IMPORTED_TARGET libevdev)
+ add_feature_info(libevdev libevdev_FOUND "Required for game controller support")
+ 
++find_package(Inotify)
++set_package_properties(Inotify PROPERTIES
++    TYPE REQUIRED
++    PURPOSE "Required for game controller support"
++)
++
+ ecm_find_qmlmodule(QtQuick 2.3)
+ ecm_find_qmlmodule(QtQuick.Controls 2.15)
+ ecm_find_qmlmodule(QtQuick.Layouts 1.3)
diff --git a/x11-wm/plasma6-kwin/files/patch-src_plugins_gamecontroller_CMakeLists.txt b/x11-wm/plasma6-kwin/files/patch-src_plugins_gamecontroller_CMakeLists.txt
new file mode 100644
index 000000000000..2757065beea7
--- /dev/null
+++ b/x11-wm/plasma6-kwin/files/patch-src_plugins_gamecontroller_CMakeLists.txt
@@ -0,0 +1,9 @@
+--- src/plugins/gamecontroller/CMakeLists.txt.orig	2026-03-03 09:32:10 UTC
++++ src/plugins/gamecontroller/CMakeLists.txt
+@@ -25,5 +25,6 @@ target_link_libraries(gamecontroller PRIVATE
+     UDev::UDev
+     PkgConfig::libevdev
+     XKB::XKB
++    ${Inotify_LIBRARIES}
+ )
+