summaryrefslogtreecommitdiff
path: root/devel/glib20/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/glib20/Makefile')
-rw-r--r--devel/glib20/Makefile9
1 files 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}