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

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

github.setup        DaanDeMeyer reproc 14.2.4 v
github.tarball_from archive
revision            1

description         A cross-platform (C99/C++11) process library
long_description    ${name} (Redirected Process) is a cross-platform C/C++ library that \
                    simplifies starting, stopping and communicating with external programs. \
                    The main use case is executing command line applications directly from \
                    C or C++ code and retrieving their output.

platforms           darwin
license             MIT
categories          devel
maintainers         {harens @harens} openmaintainer

checksums           rmd160  bfdacfb331a7da74375f0845c22407282b5a87e5 \
                    sha256  55c780f7faa5c8cabd83ebbb84b68e5e0e09732de70a129f6b3c801e905415dd \
                    size    64956

# https://github.com/DaanDeMeyer/reproc/issues/94
patchfiles-append   patch-gcc13.diff

compiler.c_standard 1999
compiler.cxx_standard 2011

# Build the C++11 API
configure.args-append \
                    -DREPROC++=ON
