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

categories          devel
license             LGPL-2
maintainers         nomaintainer

description         This is BCUnit, a fork of the defunct project CUnit
long_description    {*}${description} \
    with several fixes and patches applied. CUnit is a Unit testing framework \
    for C. It's lightweight system for writing, administering, and running \
    unit tests in C

checksums           rmd160  48d4bc518b8ce426d04bb9548137afe206ce1e7a \
                    sha256  b82874e0423714d497f447b9a01f4f1979e124cdcae088e4a512d18c68508471 \
                    size    378795

# cc1: error: unrecognized command line option "-Wno-clobbered"
patchfiles-append   patch-drop-unsupported-flags.diff

post-patch {
        reinplace "s,@prefix@,${prefix},g" ${worksrcpath}/bcunit.pc.in
}

compiler.c_standard 1999

configure.args-append \
                    -DENABLE_DOC=ON \
                    -DENABLE_STATIC=OFF \
                    -DCMAKE_INSTALL_BINDIR=${prefix} \
                    -DCMAKE_INSTALL_LIBDIR=${prefix}/lib \
                    -DCMAKE_INSTALL_INCLUDEDIR=${prefix}/include

github.livecheck.regex  {([0-9.]+)}
