summaryrefslogtreecommitdiff
path: root/devel/mongo-cxx-driver/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'devel/mongo-cxx-driver/Makefile')
-rw-r--r--devel/mongo-cxx-driver/Makefile32
1 files changed, 32 insertions, 0 deletions
diff --git a/devel/mongo-cxx-driver/Makefile b/devel/mongo-cxx-driver/Makefile
new file mode 100644
index 000000000000..51ee62747571
--- /dev/null
+++ b/devel/mongo-cxx-driver/Makefile
@@ -0,0 +1,32 @@
+PORTNAME= mongo-cxx-driver
+DISTVERSIONPREFIX= r
+# Note: mongo-cxx-driver > 4.0.0 requires mongo-c-driver 2.x
+DISTVERSION= 4.0.0
+CATEGORIES= devel databases
+
+MAINTAINER= jwb@FreeBSD.org
+COMMENT= MongoDB C++ driver
+WWW= https://github.com/mongodb/mongo-cxx-driver/
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= mongo-c-driver>=1.29.0<2.0.0:devel/mongo-c-driver
+LIB_DEPENDS= libmongoc-1.0.so:devel/mongo-c-driver \
+ libbson-1.0.so:devel/libbson \
+ libutf8proc.so:textproc/utf8proc
+
+USES= cmake compiler:c++17-lang pkgconfig ssl
+USE_GITHUB= yes
+USE_CXXSTD= c++17
+GH_ACCOUNT= mongodb
+
+CMAKE_ARGS= -DENABLE_ZLIB=SYSTEM \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_CXX_STANDARD=17 \
+ -DBUILD_VERSION=${DISTVERSION}
+CMAKE_OFF= BUILD_TESTING \
+ ENABLE_TESTS \
+ ENABLE_UNINSTALL
+
+.include <bsd.port.mk>