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

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

github.setup        ClusterLabs libqb 2.0.8 v
github.tarball_from archive
revision            0

homepage            https://clusterlabs.github.io/libqb/

description         \
    ${name} is a library providing high performance logging, tracing, IPC, \
    and poll.

long_description    {*}${description}

checksums           rmd160  eb698d03d6e13e7071b77b715a1a6d65ebd9d695 \
                    sha256  c062048245c191b3585b43a93a39f9001c52bb60c2051867773a6f80b548dfbc \
                    size    239568

categories          devel
license             LGPL-2.1
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

patchfiles-append   patch-configure-remove-new-dtags-check.diff

compiler.c_standard 1999

use_autoreconf      yes
autoreconf.cmd      ./autogen.sh

depends_build-append \
                    port:autoconf   \
                    port:automake   \
                    port:doxygen    \
                    port:libtool    \
                    port:pkgconfig
depends_lib-append  path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libxml2

post-destroot {
    file delete ${destroot}${prefix}/bin/doxygen2man
    file delete ${destroot}${prefix}/share/man/man1/doxygen2man.1.gz
}
