git: aae9823fbea3 - main - devel/libinotify: convert to a system header

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 09 Aug 2025 00:55:44 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=aae9823fbea3dfa912ffb89657c6a8dae964fa78

commit aae9823fbea3dfa912ffb89657c6a8dae964fa78
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2025-07-20 01:52:35 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2025-08-09 00:55:09 +0000

    devel/libinotify: convert to a system header
    
    - Don't copy but instruct C preprocessor to use the base header
    - Make sure warnings in the header are ignored like under /usr/include
    
    This reverts commit 4d2e05dbb5a105e5b06709c52d3ced1ed2c2c7cd.
    
    PR:             288342
    Reviewed by:    arrowd
    Approved by:    maintainer timeout (3 weeks)
---
 devel/libinotify/Makefile | 5 +++--
 x11/way-displays/Makefile | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/devel/libinotify/Makefile b/devel/libinotify/Makefile
index a0bce906fb85..2e844386e02b 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}/
 
@@ -20,7 +20,8 @@ USE_LDCONFIG=	yes
 
 .if exists(/usr/include/sys/inotify.h)
 post-install:
-	${INSTALL_DATA} /usr/include/sys/inotify.h ${STAGEDIR}${PREFIX}/include/sys/
+	${PRINTF} '#pragma GCC system_header\n#include_next <sys/inotify.h>\n' \
+		> ${STAGEDIR}${PREFIX}/include/sys/inotify.h
 	${SED} -e '/Libs:/d' -e '/Cflags:/d' ${WRKSRC}/libinotify.pc \
 		> ${STAGEDIR}${PREFIX}/libdata/pkgconfig/libinotify.pc
 .endif
diff --git a/x11/way-displays/Makefile b/x11/way-displays/Makefile
index 09620637d470..8607b935ee34 100644
--- a/x11/way-displays/Makefile
+++ b/x11/way-displays/Makefile
@@ -17,7 +17,7 @@ LIB_DEPENDS=	libepoll-shim.so:devel/libepoll-shim \
 		libinput.so:x11/libinput
 TEST_DEPENDS=	cmocka>0:sysutils/cmocka
 
-USES=		compiler:c11 gmake localbase pkgconfig
+USES=		compiler:c11 gmake pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	alex-courtis
 MAKEFILE=	GNUmakefile