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

github.setup        cofyc argparse 1.1.0 v
revision            0
categories          devel
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         Command-line arguments parsing library in C
long_description    {*}${description} (compatible with C++).
checksums           rmd160  8ef22b51a910b4f9e8d655d476e7a2614460a944 \
                    sha256  aa9eb4def92b2a162255d3c1feaeb599c1101991da4da4035f528154b2415293 \
                    size    10475
github.tarball_from archive

# FIXME: temporary solution, should be co-installable.
conflicts           libargparse

destroot {
    xinstall -m 644 ${worksrcpath}/argparse.h ${destroot}${prefix}/include/
    xinstall -m 644 -W ${worksrcpath} libargparse.a libargparse.dylib ${destroot}${prefix}/lib/
    system "install_name_tool -id ${prefix}/lib/libargparse.dylib ${destroot}${prefix}/lib/libargparse.dylib"
}
