diff --git a/devel/libbson/Makefile b/devel/libbson/Makefile index 5677408f56ad..7f13900d789c 100644 --- a/devel/libbson/Makefile +++ b/devel/libbson/Makefile @@ -1,42 +1,43 @@ PORTNAME= libbson PORTVERSION= 1.23.2 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= ports@bsdserwis.com COMMENT= BSON utility library WWW= https://github.com/mongodb/mongo-c-driver LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING USES= cmake:noninja cpe pkgconfig USE_GITHUB= yes CPE_VENDOR= mongodb GH_ACCOUNT= mongodb GH_PROJECT= mongo-c-driver USE_LDCONFIG= yes DOCS_VARS= BUILD_DEPENDS+=sphinx-build:textproc/py-sphinx PATCH_STRIP= -p1 CFLAGS+= -D__BSD_VISIBLE=1 LDFLAGS+= -pthread OPTIONS_DEFINE= DOCS OPTIONS_DEFAULT= CMAKE_ON= ENABLE_EXAMPLES CMAKE_OFF= ENABLE_TESTS ENABLE_UNINSTALL DOCS_CMAKE_ON= -DENABLE_HTML_DOCS=ON -DENABLE_MAN_PAGES=ON CMAKE_ARGS= -DENABLE_MONGOC=OFF -DENABLE_BSON=ON CMAKE_ARGS+= -DENABLE_ZLIB=ON -DENABLE_ZSTD=ON CMAKE_ARGS+= -DBSON_HAVE_STRINGS_H=0 post-extract: ${ECHO} "${PORTVERSION}" > ${WRKSRC}/VERSION_CURRENT post-install: ${MV} ${STAGEDIR}${PREFIX}/share/mongo-c-driver \ ${STAGEDIR}${PREFIX}/share/libbson .include diff --git a/devel/libbson/files/patch-CMakeLists.txt b/devel/libbson/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..68a5ce58253b --- /dev/null +++ b/devel/libbson/files/patch-CMakeLists.txt @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index caaf53499..2dd8cc398 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -249,7 +249,7 @@ cmake_policy (SET CMP0042 NEW) + # Both _BSD_SOURCE and _DEFAULT_SOURCE are defined for backwards-compatibility with glibc 2.19 and earlier. + # _BSD_SOURCE and _DEFAULT_SOURCE are required by `getpagesize`, `h_errno`, etc. + # _XOPEN_SOURCE=700 is required by `strnlen`, etc. +-add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE) ++# add_definitions (-D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE) + list (APPEND CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE) + + # https://opensource.apple.com/source/Libc/Libc-1439.40.11/gen/compat.5.auto.html