# -*- 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                libpagemaker
version             0.0.4
revision            1
categories          graphics
license             MPL-2
maintainers         {zip.com.au:cbradney @cbradney} openmaintainer
platforms           darwin
homepage            https://wiki.documentfoundation.org/DLP/Libraries/${name}
master_sites        http://dev-www.libreoffice.org/src/${name}

description         libpagemaker is a library and a set of tools for reading and converting \
                    binary files produced by Adobe Pagemaker.

long_description    {*}${description}

use_xz              yes

checksums           rmd160  9cde0636289bf69e7ac6e5af8669041eec887aac \
                    sha256  66adacd705a7d19895e08eac46d1e851332adf2e736c566bef1164e7a442519d \
                    size    306496

depends_build       port:pkgconfig

depends_lib         port:librevenge

compiler.cxx_standard 2011

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

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

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
