diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2025-07-20 03:52:35 +0200 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2025-08-09 02:55:09 +0200 |
commit | aae9823fbea3dfa912ffb89657c6a8dae964fa78 (patch) | |
tree | 5e2ca57626a75ed8deadab501a2655e40569721d | |
parent | net/asterisk-chan_sccp: Update 4.3.3 => 4.3.5.20231205 (4.3.5 with several pa... (diff) |
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)
-rw-r--r-- | devel/libinotify/Makefile | 5 | ||||
-rw-r--r-- | 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 |