diff options
Diffstat (limited to 'devel/libinotify')
-rw-r--r-- | devel/libinotify/Makefile | 11 | ||||
-rw-r--r-- | devel/libinotify/files/extra-patch-libinotify.pc.in | 8 | ||||
-rw-r--r-- | devel/libinotify/files/inotify.h | 2 |
3 files changed, 19 insertions, 2 deletions
diff --git a/devel/libinotify/Makefile b/devel/libinotify/Makefile index 5487626c9544..d748982036f5 100644 --- a/devel/libinotify/Makefile +++ b/devel/libinotify/Makefile @@ -1,6 +1,6 @@ PORTNAME= libinotify PORTVERSION= 20240724 -PORTREVISION= 1 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= https://github.com/libinotify-kqueue/libinotify-kqueue/releases/download/${PORTVERSION}/ @@ -11,11 +11,18 @@ WWW= https://github.com/libinotify-kqueue/libinotify-kqueue LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -USES= libtool +USES= libtool pathfix CONFIGURE_ARGS= --enable-skip-subfiles=fusefs,smbfs GNU_CONFIGURE= yes INSTALL_TARGET= install-strip USE_LDCONFIG= yes +.if exists(/usr/include/sys/inotify.h) +EXTRA_PATCHES= ${PATCHDIR}/extra-patch-libinotify.pc.in + +post-install: + ${INSTALL_DATA} ${FILESDIR}/inotify.h ${STAGEDIR}${PREFIX}/include/sys/inotify.h +.endif + .include <bsd.port.mk> diff --git a/devel/libinotify/files/extra-patch-libinotify.pc.in b/devel/libinotify/files/extra-patch-libinotify.pc.in new file mode 100644 index 000000000000..eb58e5e51190 --- /dev/null +++ b/devel/libinotify/files/extra-patch-libinotify.pc.in @@ -0,0 +1,8 @@ +--- libinotify.pc.in.orig 2019-03-06 22:25:31 UTC ++++ libinotify.pc.in +@@ -6,5 +6,3 @@ Version: @PACKAGE_VERSION@ + Name: @PACKAGE_NAME@ + Description: Kqueue based inotify shim library + Version: @PACKAGE_VERSION@ +-Libs: -L${libdir} -linotify +-Cflags: -I${includedir} diff --git a/devel/libinotify/files/inotify.h b/devel/libinotify/files/inotify.h new file mode 100644 index 000000000000..83b08bd27147 --- /dev/null +++ b/devel/libinotify/files/inotify.h @@ -0,0 +1,2 @@ +#pragma GCC system_header +#include_next <sys/inotify.h> |