DOCS="AUTHORS COPYING README doc/*.gif doc/*.html"
IGNOREPATH=/boot:/dev:/home:/mnt:/proc:/root:/tmp:/var
STRIPLIB=y
STRIPBIN=y
SETATTR=y
VERSION=1.0.6
PROGNAME="Imlib2"
# |-----handy-ruler------------------------------------------------------|
SLACKDESC="\
imlib2: imlib2-$VERSION\n\
imlib2:\n\
imlib2: Imlib2 is an advanced replacement library for libraries like\n\
imlib2: libXpm that provides many more features with much greater\n\
imlib2: flexibility and speed than standard libraries, including font\n\
imlib2: rasterization, rotation, RGBA space rendering and blending,\n\
imlib2: dynamic binary filters, scripting, and more.\n\
imlib2:\n\
imlib2:\n\
imlib2:\n\
imlib2:"
# maintainer
ARCH=i586
BUILD=1rob
MAINTAINER="Robert Stan "
SOURCE=http://www.rasterman.com/raster/imlib.html
LOCATION=ftp://ftp.linuxpackages.net/pub/Slackware-8/robert/l/
# package name
PKGNAME="imlib2-${VERSION}-${ARCH}-${BUILD}"
# compiler flags
PKGOPT="-O2 -fomit-frame-pointer -march=$ARCH -L../src/.libs"
compile() {
tar xvzf $CWD/imlib2-$VERSION.tar.gz ; cd imlib2-$VERSION
CFLAGS=$PKGOPT ./configure \
--with-ttf=/usr/X11R6 \
--prefix=/usr/X11R6 \
--with-gnu-ld || exit 1
CFLAGS=$PKGOPT make -j2 || exit 1
}
install() {
make install
mkdir -p /usr/doc/imlib2-$VERSION
cp -a $DOCS /usr/doc/imlib2-$VERSION
}
attributes() {
echo "No special attributes..."
}
special() {
# Package description
echo -e $SLACKDESC > $CTL/slack-desc
echo -e $SLACKDESC > $CWD/$PKGNAME.txt
}
subpacks() {
echo "No subpacks..."
}