diff options
Diffstat (limited to 'libraries/jbig2dec')
-rw-r--r-- | libraries/jbig2dec/README | 6 | ||||
-rw-r--r-- | libraries/jbig2dec/jbig2dec.SlackBuild | 84 | ||||
-rw-r--r-- | libraries/jbig2dec/jbig2dec.info | 10 | ||||
-rw-r--r-- | libraries/jbig2dec/slack-desc | 12 |
4 files changed, 112 insertions, 0 deletions
diff --git a/libraries/jbig2dec/README b/libraries/jbig2dec/README new file mode 100644 index 000000000000..214a0f08f4ef --- /dev/null +++ b/libraries/jbig2dec/README @@ -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. diff --git a/libraries/jbig2dec/jbig2dec.SlackBuild b/libraries/jbig2dec/jbig2dec.SlackBuild new file mode 100644 index 000000000000..640d65094d49 --- /dev/null +++ b/libraries/jbig2dec/jbig2dec.SlackBuild @@ -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} diff --git a/libraries/jbig2dec/jbig2dec.info b/libraries/jbig2dec/jbig2dec.info new file mode 100644 index 000000000000..2c3722505602 --- /dev/null +++ b/libraries/jbig2dec/jbig2dec.info @@ -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" diff --git a/libraries/jbig2dec/slack-desc b/libraries/jbig2dec/slack-desc new file mode 100644 index 000000000000..ee7dd9723981 --- /dev/null +++ b/libraries/jbig2dec/slack-desc @@ -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: |