git: 31ead562ed65 - main - comms/uird: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jul 2023 17:43:23 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=31ead562ed657bd5e4c1ee8d7ac907d628119725
commit 31ead562ed657bd5e4c1ee8d7ac907d628119725
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-20 14:35:15 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-20 17:42:36 +0000
comms/uird: Fix build with llvm16
- Pet portclippy
Sponsored by: The FreeBSD Foundation
---
comms/uird/Makefile | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/comms/uird/Makefile b/comms/uird/Makefile
index 654b339dff90..b24194d0ead3 100644
--- a/comms/uird/Makefile
+++ b/comms/uird/Makefile
@@ -10,20 +10,29 @@ WWW= http://kbinstuff.googlepages.com/uirduniversalirreceiverdaemon
USES= perl5 gmake tar:tgz
-WRKSRC= ${WRKDIR}/${PORTNAME}
ALL_TARGET= ${PORTNAME}
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
PLIST_FILES= bin/uird
PORTDOCS= Documentation
OPTIONS_DEFINE= DOCS
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|gcc|$${CC}\ $${CFLAGS}|; /strip/d' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/uird ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}