# -*- 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                libfreehand
version             0.1.2
revision            8
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         libfreehand is a library and a set of tools for reading and converting binary files \
                    produced by Aldus/Macromedia/Adobe FreeHand.

long_description    ${description}

use_xz              yes

checksums           rmd160  192b04b4aa85a6d3e7f1200aad7588e72978a329 \
                    sha256  0e422d1564a6dbf22a9af598535425271e583514c0f7ba7d9091676420de34ac \
                    size    516132

depends_build       path:lib/pkgconfig/icu-uc.pc:icu \
                    port:pkgconfig

depends_lib         port:librevenge \
                    port:lcms2 \
                    port:zlib

compiler.cxx_standard 2011

patchfiles-append   patch-icu_fix.diff

configure.args      --disable-werror \
                    --disable-silent-rules \
                    --disable-tests \
                    --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}"
