git: df482f1d2426 - main - net-im/pidgin-sipe: Fix build on 14

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

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

commit df482f1d24267d943a1b1ff90396c527dac5801d
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-18 16:47:16 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-18 19:42:04 +0000

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

diff --git a/net-im/pidgin-sipe/Makefile b/net-im/pidgin-sipe/Makefile
index b88220ba27ab..152dad878ef4 100644
--- a/net-im/pidgin-sipe/Makefile
+++ b/net-im/pidgin-sipe/Makefile
@@ -48,6 +48,15 @@ PORTDOCS=	AUTHORS ChangeLog HACKING NEWS README TODO
 
 CFLAGS+=	-Wno-error
 
+.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/LDLAGS/LDFLAGS/' ${WRKSRC}/configure