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

boost.depends_type  build

name                libwps-0.3
set dname           libwps
version             0.3.1
categories          textproc
maintainers         {devans @dbevans} openmaintainer
license             LGPL-2

description         C++ library for reading and parsing the Microsoft Works \
                    document format
long_description    ${name} a is ${description}.

homepage            https://libwps.sourceforge.net
master_sites        sourceforge:project/libwps/libwps/libwps-${version}

use_xz              yes

distname            ${dname}-${version}

checksums           rmd160  d803fe0f244961ff0ee801192fa6afa6a1261aa2 \
                    sha256  bb2c2a7db5121411ba705ccf3452cdce51d9798384fd9621e9702ba802878e93 \
                    size    410376

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:librevenge

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

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

# Delete binaries that conflict with libwps
post-destroot {
    file delete -force ${destroot}${prefix}/bin
}

# No further updates expected in this branch
livecheck.type      none
