# -*- 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.0
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  f34b4413b613e33ab9fe83ff5aa7e2827a6425fcbcd343339458d614b7d6a951 \
                    rmd160  b191b321d119747cba828caf77105e2a364b9344 \
                    size    4377793

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
