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

# Old Boost math has a bug which breaks it for gcc:
# checking for boost/math/constants/constants.hpp... no
# configure: error: Required boost headers not found.
boost.version       1.81

name                libzmf
version             0.0.2
revision            9
homepage            https://wiki.documentfoundation.org/DLP/Libraries/libzmf
master_sites        https://dev-www.libreoffice.org/src/libzmf/
use_xz              yes

categories          devel graphics
license             MPL-2
maintainers         {gmail.com:audvare @Tatsh} openmaintainer

description         Library for parsing Zoner Callisto/Draw documents.
long_description    {*}${description}

depends_build       path:bin/pkg-config:pkgconfig
depends_lib         path:lib/pkgconfig/icu-uc.pc:icu \
                    port:librevenge \
                    port:libpng \
                    port:zlib

checksums           rmd160  b0be3dbe0f6bf4565c1668a236850601616f625f \
                    sha256  27051a30cb057fdb5d5de65a1f165c7153dc76e27fe62251cbb86639eb2caf22 \
                    size    320952

configure.args      --without-docs \
                    --disable-werror \
                    --disable-tests \
                    --disable-tools \
                    --disable-debug

# configure: error: *** A compiler with support for C++11 language features is required
# Required for ICU
compiler.cxx_standard   2017
configure.cxxflags-append   -std=c++17
