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

name                jbig2dec
version             0.14
categories          graphics
platforms           darwin
license             AGPL-3+
maintainers         nomaintainer

description         A decoder implementation of the JBIG2 image \
                    compression format
long_description    JBIG2 is designed for lossy or lossless encoding \
                    of 'bilevel' (1-bit monochrome) images at \
                    moderately high resolution, and in particular \
                    scanned paper documents. In this domain it can be \
                    very efficient, offering compression ratios on the \
                    order of 100:1. This is a decoder only \
                    implementation, and its primary use is in \
                    Ghostscript and MuPDF for decoding JBIG2 streams \
                    in PDF files. Thus its primary focus is the set of \
                    JBIG2 features supported in PDF.

homepage            http://www.ghostscript.com/jbig2dec.html
master_sites        http://downloads.ghostscript.com/public/jbig2dec/

checksums           rmd160  c7421f9ff09bc125f3245ba7540fd969932ba8ab \
                    sha256  21b498c3ba566f283d02946f7e78e12abbad89f12fe4958974e50882c185014c

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
            CHANGES \
            COPYING \
            LICENSE \
            README \
            ${docdir}
}