git: b7f1b70a7c72 - main - mail/xmailbox: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 25 Jul 2023 08:36:45 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b7f1b70a7c725d8f79817ebead207b22cd2b55e0
commit b7f1b70a7c725d8f79817ebead207b22cd2b55e0
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-25 08:35:43 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-25 08:36:28 +0000
mail/xmailbox: Fix build with llvm16
- Utilize OPTIONSNG
Sponsored by: The FreeBSD Foundation
---
mail/xmailbox/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mail/xmailbox/Makefile b/mail/xmailbox/Makefile
index 7bc0daa4840a..340b17166659 100644
--- a/mail/xmailbox/Makefile
+++ b/mail/xmailbox/Makefile
@@ -12,6 +12,12 @@ USE_XORG= xaw
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|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/XMailbox.ad
@@ -19,6 +25,8 @@ post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/dingdong.au ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/ugotmail.au ${STAGEDIR}${DATADIR}
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DISCLAIMER ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}