git: 8a8335392009 - main - databases/mongodb50: fix build on 13.5 and 14.3 (llvm19)

From: Ronald Klop <ronald_at_FreeBSD.org>
Date: Sun, 06 Jul 2025 08:43:24 UTC
The branch main has been updated by ronald:

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

commit 8a833539200964f907ed25712838be765ca71917
Author:     Ronald Klop <ronald@FreeBSD.org>
AuthorDate: 2025-07-06 08:40:29 +0000
Commit:     Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2025-07-06 08:42:53 +0000

    databases/mongodb50: fix build on 13.5 and 14.3 (llvm19)
    
    + Decrease the amount of warnings in the build log.
---
 databases/mongodb50/Makefile | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile
index 3ef2b2dae6e4..f7a4ead70e91 100644
--- a/databases/mongodb50/Makefile
+++ b/databases/mongodb50/Makefile
@@ -32,7 +32,7 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libyaml-cpp.so:devel/yaml-cpp \
 		libzstd.so:archivers/zstd
 
-USES=		compiler:c++17-lang cpe python:build scons shebangfix
+USES=		compiler:c++17-lang cpe llvm:max=18,build python:build scons shebangfix
 USE_RC_SUBR=	mongod
 
 USE_GITHUB=	yes
@@ -68,7 +68,8 @@ MAKE_ARGS=	--cxx-std=17 \
 		MONGO_VERSION=${DISTVERSION} \
 		VERBOSE=on
 
-CFLAGS+=	-DBOOST_NO_CXX98_FUNCTION_BASE
+CFLAGS+=	-DBOOST_NO_CXX98_FUNCTION_BASE \
+		-Wno-deprecated-builtins
 
 CONFLICTS_INSTALL=	mongodb[0-9][0-9] # etc/mongodb.conf.sample
 
@@ -90,12 +91,6 @@ SASL_MAKE_ARGS=		--use-sasl-client
 SSL_USES=	ssl
 SSL_MAKE_ARGS=	--ssl
 
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && (${OSREL:R} >= 15 && ${OSVERSION} >= 1500026)
-USES+=		llvm:max=18,build
-.endif
-
 .include <bsd.port.pre.mk>
 
 .if ${ARCH} == aarch64 || ${ARCH} == powerpc64le