# -*- 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

github.setup        jarro2783 cxxopts 3.2.1 v
revision            0
categories          devel
platforms           {darwin any}
license             MIT
maintainers         {@barracuda156 gmail.com:vital.had} openmaintainer
description         Lightweight C++ command-line option parser
long_description    {*}${description}
checksums           rmd160  35f016a1ca69bc3e53e866f350b7d4f00239ff6e \
                    sha256  841f49f2e045b9c6365997c2a8fbf76e6f215042dda4511a5bb04bc5ebc7f88a \
                    size    160606
github.tarball_from archive
supported_archs     noarch

configure.args-append \
                    -DCXXOPTS_BUILD_EXAMPLES=OFF \
                    -DCXXOPTS_BUILD_TESTS=ON \
                    -DCXXOPTS_ENABLE_INSTALL=ON \
                    -DCXXOPTS_ENABLE_WARNINGS=ON

configure.pre_args-replace \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON \
                    -DCMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=OFF

compiler.cxx_standard   2011

# https://github.com/jarro2783/cxxopts/issues/431
test.run            no
