diff options
Diffstat (limited to '')
-rw-r--r-- | devel/libinotify/Makefile | 8 | ||||
-rw-r--r-- | devel/libinotify/files/extra-patch-libinotify.pc.in | 8 | ||||
-rw-r--r-- | devel/libinotify/files/inotify.h | 2 |
3 files changed, 14 insertions, 4 deletions
diff --git a/devel/libinotify/Makefile b/devel/libinotify/Makefile index a0bce906fb85..d748982036f5 100644 --- a/devel/libinotify/Makefile +++ b/devel/libinotify/Makefile @@ -1,6 +1,6 @@ PORTNAME= libinotify PORTVERSION= 20240724 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= https://github.com/libinotify-kqueue/libinotify-kqueue/releases/download/${PORTVERSION}/ @@ -19,10 +19,10 @@ 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} /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 + ${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> |