# -*- 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.3.1 v
revision            0
categories          devel
platforms           {darwin any}
license             MIT
maintainers         nomaintainer
description         Lightweight C++ command-line option parser
long_description    {*}${description}
checksums           rmd160  c4168b39e7db8a9cd75781d7b5651dd8f2ab41a9 \
                    sha256  3bfc70542c521d4b55a46429d808178916a579b28d048bd8c727ee76c39e2072 \
                    size    161557
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
