# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
description Data compression algorithm for bi-level high-res images
long_description JBIG-KIT provides a portable library of compression \
and decompression functions with a documented \
interface that you can very easily include into your \
image or document processing software. In addition, \
JBIG-KIT provides ready-to-use compression and \
decompression programs with a simple command line \
interface (similar to the converters found in netpbm).
homepage http://www.cl.cam.ac.uk/~mgk25/${name}/
master_sites ${homepage}download/
checksums rmd160 71cc51fce3f65d8d9abf9ff52c29edf5469eb52f \
sha256 de7106b6bfaf495d6865c7dd7ac6ca1381bd12e0d81405ea81e7f2167263d932
patchfiles patch-Makefile
build.args CC="${configure.cc} ${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]"
${destroot}${prefix}/share/doc/${name} \
${destroot}${prefix}/share/examples
xinstall -m 755 -W ${worksrcpath}/pbmtools jbgtopbm pbmtojbg \
xinstall -m 644 -W ${worksrcpath}/pbmtools jbgtopbm.1 pbmtojbg.1 \
${destroot}${prefix}/share/man/man1
xinstall -m 644 -W ${worksrcpath}/libjbig jbig.h jbig_ar.h \
${destroot}${prefix}/include
xinstall -m 644 -W ${worksrcpath} ANNOUNCE CHANGES COPYING INSTALL TODO \
${destroot}${prefix}/share/doc/${name}
copy ${worksrcpath}/examples \
${destroot}${prefix}/share/examples/${name}
set name_version ${version}
set install_version [join [lrange [split ${version} .] 0 0] .]
patchfiles-append patch-libjbig_Makefile_darwin
reinplace "s|__MACPORTS_PREFIX__|${prefix}|g" \
${worksrcpath}/libjbig/Makefile