diff --git a/devel/libinotify/Makefile b/devel/libinotify/Makefile index 2e844386e02b..d748982036f5 100644 --- a/devel/libinotify/Makefile +++ b/devel/libinotify/Makefile @@ -1,29 +1,28 @@ PORTNAME= libinotify PORTVERSION= 20240724 PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= https://github.com/libinotify-kqueue/libinotify-kqueue/releases/download/${PORTVERSION}/ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Kevent based inotify compatible library WWW= https://github.com/libinotify-kqueue/libinotify-kqueue LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE 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: - ${PRINTF} '#pragma GCC system_header\n#include_next \n' \ - > ${STAGEDIR}${PREFIX}/include/sys/inotify.h - ${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 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