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

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

description         librevenge 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  f7500becc7634d10aa312fe1466e3eaa4dbe8ab8 \
                    sha256  106d0c44bb6408b1348b9e0465666fa83b816177665a22cd017e886c1aaeeb34 \
                    size    437400

depends_build       port:pkgconfig

# this port only uses boost headers during build
# and does not link with any boost libraries
# no need to rebuild due to boost library ABI changes
boost.depends_type build

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      --without-docs \
                    --disable-werror \
                    --disable-silent-rules \
                    --disable-tests

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}
