# -*- 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.0.3
github.tarball_from archive
revision            0

license             GPL-2+ LGPL-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  02815b21a51632c2849d41b067597e9356bbc54bad0efcd84c902b555c203ce7 \
                    rmd160  a9df9906f7154647e4234bc2cfe58fb015e7fb24 \
                    size    3360409

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
