# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           cmake 1.1
PortGroup           github 1.0

epoch               1
github.setup        mongodb mongo-cxx-driver 3.10.2 r
revision            0
checksums           rmd160  19ddd0d645a8beae6bb17a04a8b08edf641c6a65 \
                    sha256  52b99b2866019b5ea25d15c5a39e2a88c70fe1259c40f1091deff8bfae0194be \
                    size    1878631

license             Apache-2
categories          devel databases
platforms           {darwin >= 10}
maintainers         {ryandesign @ryandesign} openmaintainer

description         library for using mongodb from C++ code

long_description    ${name} provides libmongocxx, a {*}${description}. \
                    Also contains companion library libbsoncxx.

github.tarball_from releases
distname            ${name}-${github.tag_prefix}${version}

depends_lib-append  port:cyrus-sasl2 \
                    port:mnmlstc-core \
                    port:mongo-c-driver

compiler.cxx_standard 2011
compiler.thread_local_storage yes

# Segmentation fault observed during build for Xcode 6.2
compiler.blacklist-append {clang == 600.0.57}
# error: no matching member function for call to 'push_back'
compiler.blacklist-append {clang < 1000}

configure.args      -DBSONCXX_POLY_USE_MNMLSTC=ON \
                    -DBSONCXX_POLY_USE_SYSTEM_MNMLSTC=ON \
                    -DBUILD_SHARED_AND_STATIC_LIBS=ON \
                    -DBUILD_VERSION=${version} \
                    -DENABLE_UNINSTALL=OFF \
                    -DMONGOCXX_ENABLE_SSL=ON

github.livecheck.regex {([0-9.]+)}
