Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jun 2023 21:43:14 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 010f15d5b460 - main - devel/antlr: Fix build with llvm16
Message-ID:  <202306252143.35PLhEJ2057021@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306252143.35PLhEJ2057021>