summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2025-06-07 13:36:09 +0300
committerGleb Popov <arrowd@FreeBSD.org>2025-07-07 14:26:36 +0300
commite8fe34cde858431730c9d53a6b9a2bfd5d9ceb07 (patch)
tree71f4c9cdab1449e09a3fd6adc788c66d6e76d2a5
parentdevel/py-pydemumble: new port had been added (+) (diff)
devel/libinotify: Prepare for the native inotify impl
The idea behind the change is to leave the library as-is to allow old programs linked to it to run, but prevent new programs from linking to it. This is achieved by replacing libinotify sys/inotify.h with a native one and removing LDFLAGS from the .pc file Differential Revision: https://reviews.freebsd.org/D50736
-rw-r--r--devel/libinotify/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/libinotify/Makefile b/devel/libinotify/Makefile
index 5487626c9544..e8b8d3afb66d 100644
--- a/devel/libinotify/Makefile
+++ b/devel/libinotify/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libinotify
PORTVERSION= 20240724
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= https://github.com/libinotify-kqueue/libinotify-kqueue/releases/download/${PORTVERSION}/
@@ -18,4 +18,11 @@ GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
+.if exists(/usr/include/sys/inotify.h)
+post-install:
+ ${INSTALL_DATA} /usr/include/sys/inotify.h ${STAGEDIR}${PREFIX}/include/sys/
+ ${SED} -e '/Libs:/d' -e '/Cflags:/d' ${WRKSRC}/libinotify.pc \
+ > ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libinotify.pc
+.endif
+
.include <bsd.port.mk>