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

# strnlen
legacysupport.newest_darwin_requires_legacy \
                    10

github.setup        podofo podofo 1.1.1
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
github.tarball_from archive

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

compiler.cxx_standard           2017
compiler.thread_local_storage   yes

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