git: 6956bca47ee7 - main - databases/clickhouse: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Tue, 08 Aug 2023 09:55:25 UTC
The branch main has been updated by bofh:

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

commit 6956bca47ee7e22d8cdbc6ac42ee7627ab8aa361
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-08 08:07:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-08 09:55:13 +0000

    databases/clickhouse: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 databases/clickhouse/Makefile | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/databases/clickhouse/Makefile b/databases/clickhouse/Makefile
index a7d79208d42e..94dd85aa06d8 100644
--- a/databases/clickhouse/Makefile
+++ b/databases/clickhouse/Makefile
@@ -229,14 +229,11 @@ TEST_CMAKE_BOOL=	ENABLE_TESTS
 
 .include <bsd.port.options.mk>
 
-.if ${OSVERSION} < 1400000
-CC=			clang13
-CXX=		clang++13
-USES+=	llvm:max=13,build
-.else
-CC=			clang
-CXX=		clang++
-CFLAGS+=	-Wno-error=int-conversion
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+USES+=	llvm:max=15
+CC=	clang${LLVM_VERSION}
+CXX=	clang++${LLVM_VERSION}
+CFLAGS+=-Wno-error=int-conversion
 .endif
 
 .if ${OPSYS} == FreeBSD