diff --git a/devel/kf6-extra-cmake-modules/Makefile b/devel/kf6-extra-cmake-modules/Makefile index 87f142dca479..40a02bcf4179 100644 --- a/devel/kf6-extra-cmake-modules/Makefile +++ b/devel/kf6-extra-cmake-modules/Makefile @@ -1,43 +1,48 @@ PORTNAME= extra-cmake-modules DISTVERSION= ${KDE_FRAMEWORKS_VERSION} +PORTREVISION= 1 CATEGORIES= devel kde kde-frameworks COMMENT= Extra modules and scripts for CMake MAINTAINER= kde@FreeBSD.org LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING-CMAKE-SCRIPTS USES= cmake:testing kde:6 shebangfix tar:xz \ python:build SHEBANG_FILES= kde-modules/kde-git-commit-hooks/json-schema.py INSTALL_TARGET= install # does not have install/strip target PORTDOCS= html/* DOCSDIR= ${PREFIX}/share/doc/ECM NO_ARCH= yes SPHINX_DEP= sphinx-build:textproc/py-sphinx ## options OPTIONS_DEFINE= DOCS HELP MANPAGES OPTIONS_DEFAULT= HELP MANPAGES OPTIONS_SUB= yes DOCS_BUILD_DEPENDS= ${SPHINX_DEP} DOCS_CMAKE_BOOL= BUILD_HTML_DOCS HELP_DESC= Generate QtHelp documentation for installed modules HELP_BUILD_DEPENDS= ${SPHINX_DEP} HELP_BINARY_ALIAS= qcollectiongenerator=${LOCALBASE}/libexec/qt6/qhelpgenerator HELP_USES= qt:6 HELP_USE= QT=sqldriver-sqlite:build,tools:build HELP_CMAKE_BOOL= BUILD_QTHELP_DOCS MANPAGES_BUILD_DEPENDS= ${SPHINX_DEP} MANPAGES_CMAKE_BOOL= BUILD_MAN_DOCS TESTING_UNSAFE= requires reuse-tool port +.if exists(/usr/include/sys/inotify.h) +EXTRA_PATCHES+= ${FILESDIR}/extrapatch-inotify +.endif + .include diff --git a/devel/kf6-extra-cmake-modules/files/extrapatch-inotify b/devel/kf6-extra-cmake-modules/files/extrapatch-inotify new file mode 100644 index 000000000000..80d16c075e6f --- /dev/null +++ b/devel/kf6-extra-cmake-modules/files/extrapatch-inotify @@ -0,0 +1,11 @@ +--- find-modules/FindInotify.cmake.orig 2025-06-13 09:31:41 UTC ++++ find-modules/FindInotify.cmake +@@ -33,7 +33,7 @@ if(Inotify_INCLUDE_DIRS) + if(Inotify_INCLUDE_DIRS) + # On Linux and SunOS, there is no library to link against, on the BSDs there is. + # On the BSD's, inotify is implemented through a library, libinotify. +- if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS") ++ if(CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS" OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD") + set(Inotify_FOUND TRUE) + set(Inotify_LIBRARIES "") + set(Inotify_INCLUDE_DIRS "")