aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-16 05:22:16 +0000
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-08-16 05:34:38 +0000
commit3b09134588a42a227abaf8ceed7cff5143dcf36b (patch)
tree0438124318567c89966cd4e41fc2d5adab092b83
parent75e02c01491fa2c93d3cc7f10149ed5857a7476e (diff)
downloadports-3b09134588a42a227abaf8ceed7cff5143dcf36b.tar.gz
ports-3b09134588a42a227abaf8ceed7cff5143dcf36b.zip
math/asymptote: Fix build on 14
Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
-rw-r--r--math/asymptote/Makefile9
1 files changed, 9 insertions, 0 deletions
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,' \