git: 578591807a5d - main - net/xprobe: Fix build on 14

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

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

commit 578591807a5d9bc9dd08130e63d268358b90e100
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 05:04:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 06:57:12 +0000

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

diff --git a/net/xprobe/Makefile b/net/xprobe/Makefile
index dbc8e5015808..8c4f775f0f1e 100644
--- a/net/xprobe/Makefile
+++ b/net/xprobe/Makefile
@@ -14,6 +14,15 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 CONFIGURE_ENV=	INSTALL=${INSTALL}
 GNU_CONFIGURE=	yes
 
+.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} -e 's|-DBROKEN_BSD||' ${WRKSRC}/libs-external/USI++/src/configure