mirror of https://git.FreeBSD.org/ports.git
33 lines
819 B
Makefile
33 lines
819 B
Makefile
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>
|