diff options
Diffstat (limited to 'devel/glib20/Makefile')
-rw-r--r-- | devel/glib20/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile index 3ad20c2597cd..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 @@ -36,11 +36,9 @@ USES= compiler:c11 cpe gettext gnome iconv:wchar_t localbase:ldflags \ meson perl5 pkgconfig python tar:xz ${${FLAVOR}_USES} USE_LDCONFIG= yes USE_PERL5= build -USE_PYTHON= py3kplist 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 \ @@ -86,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} |