git: 73163cdf6990 - main - devel/glib20: Prepare for the native inotify impl
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Jul 2025 11:26:48 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=73163cdf699018a099bdd1607e301bf65b514eb5
commit 73163cdf699018a099bdd1607e301bf65b514eb5
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-06-07 10:40:30 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-07-07 11:26:36 +0000
devel/glib20: Prepare for the native inotify impl
Differential Revision: https://reviews.freebsd.org/D50736
---
devel/glib20/Makefile | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile
index bb111a27fbab..400741e226c2 100644
--- a/devel/glib20/Makefile
+++ b/devel/glib20/Makefile
@@ -1,6 +1,6 @@
PORTNAME= glib
DISTVERSION= 2.84.1
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 2
CATEGORIES= devel
MASTER_SITES= GNOME
@@ -39,7 +39,6 @@ USE_PERL5= build
TRIGGERS= gio-modules glib-schemas
MESON_ARGS= -Db_lundef=false \
-Ddefault_library=both \
- -Dfile_monitor_backend='libinotify-kqueue' \
-Dinstalled_tests=false \
-Dlibelf=disabled \
-Dlibmount=disabled \
@@ -85,6 +84,12 @@ BINARY_ALIAS+= g-ir-scanner=${LOCALBASE}/gobject-introspection-bootstrap/bin/g-i
MESON_ARGS+= -Dintrospection=enabled
.endif
+.if exists(/usr/include/sys/inotify.h)
+MESON_ARGS+= -Dfile_monitor_backend='inotify'
+.else
+MESON_ARGS+= -Dfile_monitor_backend='libinotify-kqueue'
+.endif
+
.if ${FLAVOR:U} == default
post-extract:
${CP} -r ${LOCALBASE}/gobject-introspection-bootstrap/libdata/pkgconfig ${PKGCONFIG_LINKDIR}