git: 4bb50b8c8616 - main - audio/cardinal: Fix build on 14

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 18 Aug 2023 04:56:35 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4bb50b8c86169651688fd09609c567a15e268edb

commit 4bb50b8c86169651688fd09609c567a15e268edb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 04:12:19 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 04:56:23 +0000

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

diff --git a/audio/cardinal/Makefile b/audio/cardinal/Makefile
index da6eaa320b86..656b269ec577 100644
--- a/audio/cardinal/Makefile
+++ b/audio/cardinal/Makefile
@@ -45,4 +45,13 @@ PORTDOCS=	*
 LTO_MAKE_ARGS=	WITH_LTO=true
 LTO_BROKEN=	Fails to build with LTO because it is gcc-centered
 
+.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
+
 .include <bsd.port.mk>