git: 647de40008d7 - main - devel/mongo-c-driver: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jul 2023 14:46:09 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=647de40008d708b0949ec9f3578c090d1d96ecc0
commit 647de40008d708b0949ec9f3578c090d1d96ecc0
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-24 13:40:58 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-24 14:46:01 +0000
devel/mongo-c-driver: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/mongo-c-driver/Makefile | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/devel/mongo-c-driver/Makefile b/devel/mongo-c-driver/Makefile
index a93d6cb887f8..7fe5ee7b24a9 100644
--- a/devel/mongo-c-driver/Makefile
+++ b/devel/mongo-c-driver/Makefile
@@ -18,16 +18,16 @@ USES= cmake cpe pathfix pkgconfig python:env
CPE_VENDOR= mongodb
USE_LDCONFIG= yes
-CFLAGS+= -D__BSD_VISIBLE=1
-
+CMAKE_ARGS= -DENABLE_BSON=SYSTEM \
+ -DENABLE_ZLIB=SYSTEM
+CMAKE_ON= ENABLE_MONGOC \
+ ENABLE_ZSTD
CMAKE_OFF= BUILD_TESTING \
ENABLE_EXAMPLES \
ENABLE_TESTS \
ENABLE_UNINSTALL
-CMAKE_ON= ENABLE_MONGOC \
- ENABLE_ZSTD
-CMAKE_ARGS= -DENABLE_BSON=SYSTEM \
- -DENABLE_ZLIB=SYSTEM
+
+CFLAGS+= -D__BSD_VISIBLE=1
OPTIONS_DEFINE= CRYPTOPROFILE DOCS ICU RDTSCP SASL SNAPPY SSL
OPTIONS_DEFAULT= SSL
@@ -55,6 +55,7 @@ SNAPPY_CMAKE_ON= -DENABLE_SNAPPY=ON
SNAPPY_CMAKE_OFF= -DENABLE_SNAPPY=OFF
SSL_USES= ssl
+SSL_CMAKE_OFF= -DENABLE_SSL=OFF
.include <bsd.port.options.mk>
@@ -63,8 +64,9 @@ SSL_USES= ssl
CMAKE_ARGS+= -DENABLE_SSL=LIBRESSL
.endif
CMAKE_ARGS+= -DENABLE_SSL=OPENSSL
-.else
-CMAKE_ARGS+= -DENABLE_SSL=OFF
+.if ( ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400092 && ${SSL_DEFAULT} == base ) || ${SSL_DEFAULT:Mopenssl3*}
+CFLAGS+= -DOPENSSL_API_COMPAT=0x30000000L"
+.endif
.endif
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1300523