# -*- 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           boost 1.0

boost.version       1.81
boost.depends_type  build

name                librevenge
version             0.0.6
revision            0
maintainers         {devans @dbevans} openmaintainer
categories          textproc
license             LGPL-2+

description         ${name} provides a generic API for file converters
long_description    {*}${description}

homepage            https://sourceforge.net/p/libwpd/wiki/${name}
master_sites        sourceforge:project/libwpd/${name}/${name}-${version}

use_xz              yes

checksums           rmd160  b7cb24af4bbcc7bb736dcb1143dc685caad84c33 \
                    sha256  19eacf5ce55d7fe6a990a45142589cdf7da0c7b68701797f133482cb44f189fa \
                    size    443588

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib         port:zlib

compiler.cxx_standard 2011

# autoreconf to get an updated glibtool that knows to pass -stdlib=XXXX at link time
use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-silent-rules \
                    --disable-tests \
                    --disable-werror \
                    --without-docs

variant docs description "Build API documentation" {
    depends_build-append    path:bin/doxygen:doxygen
    configure.args-delete   --without-docs
}

livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}
