# -*- 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           cmake 1.1
PortGroup           github 1.0
PortGroup           openssl 1.0

github.setup        podofo podofo 1.1.1
github.tarball_from archive
revision            0

license             {LGPL-2+ MPL-2}
categories          graphics
maintainers         {devans @dbevans} openmaintainer

description         PoDoFo is a library to work with the PDF file format.
long_description    The PoDoFo library is a free portable C++ library which includes \
                    classes to parse a PDF file and modify its contents into memory. \
                    The changes can be written back to disk easily.

checksums           sha256  16943528b37798d8663ffedc97190803e525d0a1dcb021fdbf9d35242831890a \
                    rmd160  ecda5fddc128e08fb23af50cf08f3ee0e6b6a37a \
                    size    4379101

depends_lib-append  port:freetype \
                    port:fontconfig \
                    port:lcms2 \
                    port:libidn \
                    port:libpng \
                    port:libunistring \
                    port:libxml2 \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:lua \
                    port:tiff \
                    port:zlib

compiler.cxx_standard 2017
compiler.thread_local_storage yes

configure.args-append \
                    -DPODOFO_WANT_LCMS2=TRUE \
                    -DPODOFO_BUILD_TEST=FALSE
