# -*- 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
github.tarball_from     archive
revision                0

categories              devel
license                 MIT
platforms               any
supported_archs         noarch
maintainers             {sethm.id.au:dev @McDaMastR} \
                        openmaintainer

description             Lightweight C++ command line option parser
long_description        cxxopts is a lightweight header-only C++ command line \
                        option parser library, supporting the standard GNU \
                        style syntax for options.

checksums               rmd160  c4168b39e7db8a9cd75781d7b5651dd8f2ab41a9 \
                        sha256  3bfc70542c521d4b55a46429d808178916a579b28d048bd8c727ee76c39e2072 \
                        size    161557

compiler.cxx_standard   2011

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

test.run                yes
test.cmd                ctest
test.target
