aboutsummaryrefslogtreecommitdiff
path: root/devel/mongo-cxx-driver/Makefile
blob: 51ee627475716fa475df90f194958cd20d6c4638 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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>