DOCS="COPYRIGHT README RELEASE-DATE TODO html"
IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var
STRIPLIB=y
STRIPBIN=y
SETATTR=y
VERSION=3.5.7
PROGNAME="libtiff"
# |-----handy-ruler------------------------------------------------------|
SLACKDESC="\
libtiff: libtiff-$VERSION\n\
libtiff:\n\
libtiff: This library provides support for the Tag Image File Format (TIFF),\n\
libtiff: a widely used format for storing image data. A small assortment of\n\
libtiff: TIFF-related software for UNIX is also included.\n\
libtiff:\n\
libtiff:\n\
libtiff:\n\
libtiff:\n\
libtiff:\n\
libtiff:"
# maintainer
ARCH=i586
BUILD=2rob
MAINTAINER="Robert Stan "
SOURCE=http://www.libtiff.org/
LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/tiff-v3.5.7/
# package name
PKGNAME="libtiff-${VERSION}-${ARCH}-${BUILD}"
compile() {
tar xvzf $CWD/tiff-v$VERSION.tar.gz
cd tiff-v$VERSION
mkdir -p /usr/doc/tiff-v$VERSION/html
OPTIMIZER="-O3 -fomit-frame-pointer -march=$ARCH" ./configure \
--with-ZIP=yes \
--with-DIR_GZLIB=/usr/lib \
--with-DIRS_LIBINC=/usr/include << EOF
no
/usr/bin
/usr/lib
/usr/include
/usr/man
/usr/doc/tiff-v$VERSION/html
bsd-source-cat
yes
EOF
OPTIMIZER="-O3 -fomit-frame-pointer -march=$ARCH" make
}
install() {
make install
# strip down the docs
find html/ -name 'CVS' -exec rm -rf {} \;
mkdir -p /usr/doc/tiff-$VERSION
cp -a $DOCS /usr/doc/tiff-$VERSION
}
attributes() {
echo
}
special() {
# Package description
echo -e $SLACKDESC > $CTL/slack-desc
echo -e $SLACKDESC > $CWD/$PKGNAME.txt
}
subpacks() {
echo
}