# -*- 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                       github 1.0
PortGroup                       cmake 1.1
PortGroup                       cxx11 1.1

github.setup                    nlohmann json 3.5.0 v
name                            nlohmann-json
categories                      devel
platforms                       darwin
supported_archs                 noarch
license                         MIT
maintainers                     {gmail.com:g.litenstein @Lord-Kamina} openmaintainer
description                     Nlohmann JSON for modern C++.
long_description                Nlohmann is a header-only (and optionally single-header) JSON library \
                                written in vanilla C++11. Has Unicode support\; DOM and SAX parsers, among other features.
checksums                       rmd160  5cba080556d2383773fe84ab54efb39fafccf1ce \
                                sha256  f7905c052c00ec615a6e459f2dcc21b7b9c1b2e0f36f4436d0543f15db51ca09 \
                                size    114794375
                                
depends_build-append            port:gmake

configure.ccache                no
configure.args-append           -DBUILD_TESTING=OFF -DJSON_BuildTests=OFF

pre-test {
    configure.args-replace      -DBUILD_TESTING=OFF -DBUILD_TESTING=ON
    configure.args-replace      -DJSON_BuildTests=OFF -DJSON_BuildTests=ON
    portconfigure::configure_main
    portbuild::build_main
}

test.run                        yes