git: 010f15d5b460 - main - devel/antlr: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 25 Jun 2023 21:43:14 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=010f15d5b460e21c3fdeed93e13ef04adc968f6c
commit 010f15d5b460e21c3fdeed93e13ef04adc968f6c
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-25 21:14:01 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-25 21:42:45 +0000
devel/antlr: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/antlr/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/devel/antlr/Makefile b/devel/antlr/Makefile
index b13b80d7a9b2..12e84da2e33f 100644
--- a/devel/antlr/Makefile
+++ b/devel/antlr/Makefile
@@ -35,9 +35,17 @@ PORTDOCS= ANTLRException.gif closure.gif cpp-runtime.html \
OPTIONS_DEFINE= DOCS
+.include <bsd.port.options.mk>
+
post-extract:
(cd ${WRKSRC} && ${CP} antlr.jar antlrall.jar)
+post-patch:
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+ @${REINPLACE_CMD} -e 's|binary_function|__binary_function|' \
+ ${WRKSRC}/lib/cpp/antlr/CharScanner.hpp
+.endif
+
do-install:
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
${INSTALL_DATA} ${WRKSRC}/antlr.jar ${STAGEDIR}${JAVAJARDIR}