# -*- 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           meson 1.0
PortGroup           muniversal 1.1
PortGroup           github 1.0

github.setup        ebassi mutest f0dcb2a48a4a8ef3dc1f7327bb0d4056a798c1a7
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
version             20200813
revision            0
checksums           rmd160  223acb773d29d8dc4c0e86721d3b4a264c2f2757 \
                    sha256  5e4ee3ec0087580eac329708b4bbbae06089d1dd60b57a7ae83e3237930a07cd \
                    size    357037

description         a small unit testing library for C projects
long_description    {*}${description}

maintainers         nomaintainer
categories          devel
license             MIT

compiler.c_standard 1999

# fix typo in sourcefiles
patchfiles          patch-mutest-numer.diff

test.run            yes

platform darwin 8 {
    # meson on Tiger cannot use rpaths, so we workaround with this to find dylib
    build.env-append       "DYLD_LIBRARY_PATH=${build_dir}/src"
    test.env-append        "DYLD_LIBRARY_PATH=${build_dir}/src"
    destroot.env-append    "DYLD_LIBRARY_PATH=${build_dir}/src"
}
