# -*- 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           github 1.0

github.setup        trueroad extractpdfmark 1.1.1 v
categories          textproc
platforms           darwin
license             GPL-3+
maintainers         {@lemzwerg gnu.org:wl} openmaintainer

description         Extract page mode and named destinations as PDFmark from PDF.

long_description    This tool helps ghostscript circumvent a bug while \
                    embedding PDF files in another PDF document \
                    (https://bugs.ghostscript.com/show_bug.cgi?id=695760). \
                    If you have control over font embedding in all PDF \
                    files, the resulting PDF can become *much* smaller \
                    and still fully functional.

github.tarball_from releases

checksums           rmd160  2933e5bc87d04d802e531e5ec0043510d36f5110 \
                    sha256  c62f3774c5a97df0517042dd5bbc1c3cdb65687617d1f0a3e8a6910f3191a21b \
                    size    323905

compiler.cxx_standard 2011

# build fails on 10.9 10.10 using Apple clang
compiler.blacklist-append {clang < 800.0.38}

depends_build       port:pkgconfig

depends_lib         port:libiconv \
                    path:lib/pkgconfig/poppler.pc:poppler

configure.args      --disable-codecvt

github.livecheck.regex {([0-9.]+)}
