libraries/jbig2dec: Added (a JBIG2 decoder)

This commit is contained in:
Hubert Hesse 2011-06-25 19:59:02 -03:00 committed by Niels Horn
parent b2aea23cd1
commit 6edc682a8c
4 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,6 @@
jbig2dec is a decoder implementation of the JBIG2 image compression format.
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.

View file

@ -0,0 +1,84 @@
#!/bin/sh
# Slackware build script for jbig2dec
# Written by Hubert Hesse (slackbuilds@hubertscorner.de)
PRGNAM=jbig2dec
VERSION=${VERSION:-0.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
README LICENSE COPYING CHANGES\
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}

View file

@ -0,0 +1,10 @@
PRGNAM="jbig2dec"
VERSION="0.11"
HOMEPAGE="http://jbig2dec.sourceforge.net/"
DOWNLOAD="http://ghostscript.com/~giles/jbig2/jbig2dec/jbig2dec-0.11.tar.gz"
MD5SUM="1f61e144852c86563fee6e5ddced63f1"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Hubert Hesse"
EMAIL="slackbuilds@hubertscorner.de"
APPROVED="Niels Horn"

View file

@ -0,0 +1,12 @@
|-----handy-ruler------------------------------------------------------|
jbig2dec: jbig2dec (a JBIG2 decoder)
jbig2dec:
jbig2dec: jbig2dec is a decoder implementation of the JBIG2 image compression
jbig2dec: format. JBIG2 is designed for lossy or lossless encoding of
jbig2dec: 'bilevel' (1-bitmonochrome) images at moderately high resolution,
jbig2dec: and in particular scanned paper documents. In this domain it is
jbig2dec: very efficient, offering compression ratios on the order of 100:1.
jbig2dec:
jbig2dec: Homepage: http://jbig2dec.sourceforge.net/
jbig2dec:
jbig2dec: