# -*- 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
# $Id: Portfile 86392 2011-10-25 06:36:08Z ryandesign@macports.org $

PortSystem          1.0

name                jbig2dec
version             0.11
revision            1
categories          graphics
platforms           darwin
maintainers         nomaintainer
# COPYING is GPL 3, but LICENSE says it's GPL 2+
license             GPL-2+

description         decoder implementation of the JBIG2 image compression format

long_description    jbig2dec is a decoder-only implementation of the JBIG2 \
                    compression format. It is currently in the alpha stage, \
                    however, it maintains parity with other available encoders.

homepage            http://jbig2dec.sourceforge.net/
master_sites        http://ghostscript.com/~giles/jbig2/jbig2dec/ \
                    sourceforge:project/jbig2dec/jbig2dec/${version}

use_xz              yes

checksums           rmd160  7c94cb5409371beff8f289beded40b02e0f55e89 \
                    sha256  016bf8148c850736c19e5e0336c43912d98d68f90c9171912c4f67f5c060adf5

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