diff options
| author | Max Brazhnikov <makc@FreeBSD.org> | 2026-03-06 12:03:27 +0000 |
|---|---|---|
| committer | Max Brazhnikov <makc@FreeBSD.org> | 2026-03-06 12:03:27 +0000 |
| commit | 80e57850134edbd56fa9a9f6546b59ded0005b66 (patch) | |
| tree | db44ce678fd6dcd3a8ef4bceef9d15de83295bb3 | |
| parent | f1fee394eae0378de1cb716704b43061d880ba6c (diff) | |
x11-wm/plasma6-kwin: fix build on old stable
PR: 293605
Reported by: Martin Birgmeier
| -rw-r--r-- | x11-wm/plasma6-kwin/Makefile | 8 | ||||
| -rw-r--r-- | x11-wm/plasma6-kwin/files/patch-CMakeLists.txt | 15 | ||||
| -rw-r--r-- | x11-wm/plasma6-kwin/files/patch-src_plugins_gamecontroller_CMakeLists.txt | 9 |
3 files changed, 31 insertions, 1 deletions
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} + ) + |
