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 @@ -1,55 +1,61 @@ PORTNAME= kwin DISTVERSION= ${KDE_PLASMA_VERSION} CATEGORIES= x11-wm kde kde-plasma COMMENT= Easy to use, but flexible, Wayland Compositor MAINTAINER= kde@FreeBSD.org BUILD_DEPENDS= ${LOCALBASE}/include/linux/input.h:devel/evdev-proto \ hwdata>0:misc/hwdata \ wayland-protocols>0:graphics/wayland-protocols LIB_DEPENDS= libdisplay-info.so:sysutils/libdisplay-info \ libdrm.so:graphics/libdrm \ libepoxy.so:graphics/libepoxy \ libinput.so:x11/libinput \ liblcms2.so:graphics/lcms2 \ libpipewire-0.3.so:multimedia/pipewire \ libqaccessibilityclient-qt6.so:accessibility/libqaccessibilityclient@qt6 \ libudev.so:devel/libudev-devd \ libwayland-client.so:graphics/wayland \ libxcb-icccm.so:x11/xcb-util-wm \ libxcb-keysyms.so:x11/xcb-util-keysyms \ libxcvt.so:x11/libxcvt \ libxkbcommon.so:x11/libxkbcommon RUN_DEPENDS= hwdata>0:misc/hwdata \ Xwayland:x11-servers/xwayland USES= cmake gettext gl kde:6 pkgconfig python qt:6 shebangfix tar:xz \ xorg USE_GL= egl gbm gl opengl USE_KDE= auth colorscheme config \ coreaddons crash dbusaddons decoration \ globalaccel globalacceld guiaddons holidays i18n idletime kcmutils \ kdeclarative knighttime kpipewire kscreenlocker libplasma newstuff \ notifications package runner service svg wayland widgetsaddons \ windowsystem xmlgui \ ecm:build plasma-wayland-protocols:build \ aurorae:run breeze:run USE_QT= base declarative multimedia sensors tools wayland USE_XORG= ice sm x11 xcb xext xi DATADIR= ${PREFIX}/share/kwin-wayland BINARY_ALIAS= python3=${PYTHON_CMD} SHEBANG_FILES= src/plugins/strip-effect-metadata.py CONFLICTS_INSTALL= theseus-ship # bin/kwin_wayland OPTIONS_DEFINE= EI OPTIONS_DEFAULT= EI OPTIONS_SUB= yes EI_DESC= Emulated input for Wayland EI_LIB_DEPENDS= libei.so:x11/libei EI_CMAKE_BOOL= KWIN_BUILD_EIS -.include +.include + +.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1500050 +LIB_DEPENDS+= libinotify.so.0:devel/libinotify +.endif + +.include 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} + ) +