# -*- 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.2
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  d6ffe6fc173ac6d6e5b00f5cb9db01990cab1bdf7cc03bdeffce3013bc9ec63a \
                    rmd160  c3d208e2ae1c5067966144cf0498b00e2ed4bfae \
                    size    4390554
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
