git: aafbb97d30a8 - main - security/weggli: Fix build for 12 and 13

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 22 Nov 2023 22:44:20 UTC
The branch main has been updated by bofh:

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

commit aafbb97d30a8b3eb208f0ea10a126338a21cb9f0
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-11-22 22:36:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-11-22 22:44:03 +0000

    security/weggli: Fix build for 12 and 13
    
    PR:             275259
    Reported by:    mikael
---
 security/weggli/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/security/weggli/Makefile b/security/weggli/Makefile
index 0ab57f44a948..daecff9c8a43 100644
--- a/security/weggli/Makefile
+++ b/security/weggli/Makefile
@@ -129,6 +129,12 @@ CARGO_CRATES=	aho-corasick-0.7.18 \
 		winapi-x86_64-pc-windows-gnu-0.4.0
 PLIST_FILES=	bin/${PORTNAME}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} <= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+USES+=		llvm:min=16
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}