the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: jbig2dec
Version: 0.11
Revision: 2
Maintainer: Daniel Johnson
Description: Decoder for JBIG2 image compression format
DescDetail: <<
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 is very efficient, offering
compression ratios on the order of 100:1.
This is a decoder only implementation, and currently is in the alpha
stage, meaning it doesn't completely work yet. However, we are
maintaining parity with available encoders, so it is useful for real
work.
<<
License: GPL
Homepage: http://jbig2dec.sourceforge.net/
Depends: lib%N-shlibs (= %v-%r), libpng14-shlibs, libgettext8-shlibs
BuildDepends: libpng14, fink (>= 0.24.12), libgettext8-dev, libiconv-dev
Source: http://ghostscript.com/~giles/jbig2/jbig2dec/%n-%v.tar.gz
Source-MD5: 1f61e144852c86563fee6e5ddced63f1
# Patch for libpng14 compatibility from Tomoaki Okayama
PatchScript: sed -i.bak 's|png_check_sig|png_create_write_struct|g' configure
ConfigureParams: --disable-dependency-tracking --disable-static --with-libpng=%p
SetCFLAGS: -Os
SetLDFLAGS: -lintl
CompileScript: <<
#!/bin/bash -ev
# This bit enables stripping unused libs on 10.5 and later.
let version=`uname -r | cut -f 1 -d .`
if [ $version -ge 9 ]; then
export LDFLAGS="$LDFLAGS -Wl,-dead_strip_dylibs"
fi
%{default_script}
<<
#test_jbig2dec.py seems to have been broken upstream.
#InfoTest: TestScript: make check || exit 2
InstallScript: <<
make install DESTDIR=%d
<<
DocFiles: CHANGES COPYING LICENSE README
SplitOff: <<
Package: lib%N-shlibs
Depends: libpng14-shlibs
Files: lib/*.*.dylib
Shlibs: <<
%p/lib/lib%N.0.dylib 1.0.0 %n (>= 0.9-1)
<<
DocFiles: CHANGES COPYING LICENSE README
<<
SplitOff2: <<
Package: lib%N-dev
Depends: lib%N-shlibs (= %v-%r)
Files: include lib
DocFiles: CHANGES COPYING LICENSE README
BuildDependsOnly: true
<<