# -*- 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        cktan tomlc17 260618 R
revision            0
categories          devel
license             MIT
maintainers         {@barracuda156 macos-powerpc.org:barracuda} openmaintainer
description         TOML C library in c17
long_description    {*}${description}
checksums           rmd160  be00d8221b4a7381cce597bdb192b11af2398577 \
                    sha256  ebf63f07cfa179b0f5a2ee38a763217379d7343dcb3ffb4f395c02ec46215a35 \
                    size    60710
github.tarball_from archive

# https://github.com/cktan/tomlc17/issues/42
patchfiles          patch-fix-flags.diff

post-patch {
    reinplace "s,/usr/local,${prefix}," ${worksrcpath}/Makefile
}

compiler.c_standard     2017
# https://github.com/cktan/tomlc17/issues/14
compiler.cxx_standard   2020

# Cannot enable tests due to: https://github.com/cktan/tomlc17/issues/13
test.run            no
