git: ec9b86433824 - main - emulators/uae: Fix build on 14

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

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

commit ec9b86433824c4676e749cec4a9ba80308943902
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 05:46:54 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 06:57:13 +0000

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

diff --git a/emulators/uae/Makefile b/emulators/uae/Makefile
index 5e970c4c6350..5bce738cc16c 100644
--- a/emulators/uae/Makefile
+++ b/emulators/uae/Makefile
@@ -18,6 +18,15 @@ USE_GNOME=	gtk20
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CPP=	clang-cpp${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|build68kc|build68k|' \
 		${WRKSRC}/src/Makefile.in