diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-24 15:40:58 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2023-07-24 16:46:01 +0200 |
commit | 647de40008d708b0949ec9f3578c090d1d96ecc0 (patch) | |
tree | e0cfa7fa24d19baa4e397980d01e458ef2f46040 /devel/mongo-c-driver/Makefile | |
parent | graphics/vulkan-headers: update to 1.3.259 (diff) |
devel/mongo-c-driver: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
Diffstat (limited to '')
-rw-r--r-- | devel/mongo-c-driver/Makefile | 18 |
1 files 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 |