DOCS="AUTHORS BUGS COPYING NEWS ONEWS README TODO UNCOMPRESSED_GIF doc" IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var STRIPLIB=y STRIPBIN=y SETATTR=y VERSION=4.1.0b1 PROGNAME="libungif" # |-----handy-ruler------------------------------------------------------| SLACKDESC="\ libungif: libungif-$VERSION\n\ libungif:\n\ libungif: A library for manipulating GIF format image files.\n\ libungif:\n\ libungif:\n\ libungif:\n\ libungif:\n\ libungif:\n\ libungif:\n\ libungif:\n\ libungif:" # maintainer ARCH=i586 BUILD=3rob MAINTAINER="Robert Stan " SOURCE=http://prtr-13.ucsc.edu/~badger/software/libungif/ LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/libungif-$VERSION/ # package name PKGNAME="libungif-${VERSION}-${ARCH}-${BUILD}" compile() { tar xvzf $CWD/libungif-$VERSION.tar.gz cd libungif-$VERSION for patch in `ls $CWD/*.patch.bz2` ; do bzip2 -cd $patch | patch -p1 ; done libtoolize -f CFLAGS="-O3 -fomit-frame-pointer -march=$ARCH" \ ./configure --prefix=/usr || exit 1 CFLAGS="-O3 -fomit-frame-pointer -march=$ARCH" \ make || exit 1 } install() { make install # strip down the docs find doc/ \ \( -name 'Makefile' -or \ -name 'Makefile.in' -or \ -name 'Makefile.am' \ \) -exec rm -rf {} \; mkdir -p /usr/doc/libungif-$VERSION cp -a $DOCS /usr/doc/libungif-$VERSION } attributes() { echo } special() { cat << EOF >> $CTL/doinst.sh ( cd usr/lib ; rm -rf libgif.so.4.1.0 ) ( cd usr/lib ; ln -sf libungif.so.4.1.0 libgif.so.4.1.0 ) ( cd usr/lib ; rm -rf libgif.so.4 ) ( cd usr/lib ; ln -sf libgif.so.4.1.0 libgif.so.4 ) ( cd usr/lib ; rm -rf libgif.so ) ( cd usr/lib ; ln -sf libgif.so.4 libgif.so ) ( cd usr/lib ; rm -rf libgif.a ) ( cd usr/lib ; ln -sf libungif.a libgif.a ) EOF # Package description echo -e $SLACKDESC > $CTL/slack-desc echo -e $SLACKDESC > $CWD/$PKGNAME.txt } subpacks() { echo }