# -*- 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                libqxp
version             0.0.2
revision            8

homepage            https://wiki.documentfoundation.org/DLP/Libraries/libqxp
master_sites        https://dev-www.libreoffice.org/src/libqxp/
use_xz              yes

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

description         Library parsing QuarkXPress documents.
long_description    {*}${description}

checksums           rmd160  3363d46e334124f454c8b928c1e91e8f138ef250 \
                    sha256  e137b6b110120a52c98edd02ebdc4095ee08d0d5295a94316a981750095a945c \
                    size    341760

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

configure.args      --without-docs \
                    --disable-weffc \
                    --disable-tests \
                    --disable-tools

# 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
