git: 3b09134588a4 - main - math/asymptote: Fix build on 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 16 Aug 2023 05:34:53 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3b09134588a42a227abaf8ceed7cff5143dcf36b

commit 3b09134588a42a227abaf8ceed7cff5143dcf36b
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-16 05:22:16 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-16 05:34:38 +0000

    math/asymptote: Fix build on 14
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 math/asymptote/Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/math/asymptote/Makefile b/math/asymptote/Makefile
index b29c6157bdc1..2bf1ed3b2d9e 100644
--- a/math/asymptote/Makefile
+++ b/math/asymptote/Makefile
@@ -82,6 +82,15 @@ TEST_WRKSRC=	${WRKSRC}/tests
 
 PORTEXAMPLES=	*
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} 's/-lgc/-lgc-threaded/' ${WRKSRC}/configure
 	@${REINPLACE_CMD} 's,makeinfo,${LOCALBASE}/bin/makeinfo,' \