summaryrefslogtreecommitdiff
path: root/libraries/imlib2/imlib2.SlackBuild
diff options
context:
space:
mode:
authorChess Griffin <chess@chessgriffin.com>2010-05-11 22:23:46 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 22:23:46 +0200
commit39956f79a2ccd7ad355ea51018f2a2fa10598d5e (patch)
tree732e9624bf65e56228aa8050d5f03590d13a56d8 /libraries/imlib2/imlib2.SlackBuild
parent4a127fb48688e82a344cfda475418b073f75f11c (diff)
downloadslackbuilds-39956f79a2ccd7ad355ea51018f2a2fa10598d5e.tar.gz
libraries/imlib2: Updated for version 1.4.2
Diffstat (limited to 'libraries/imlib2/imlib2.SlackBuild')
-rw-r--r--libraries/imlib2/imlib2.SlackBuild30
1 files changed, 18 insertions, 12 deletions
diff --git a/libraries/imlib2/imlib2.SlackBuild b/libraries/imlib2/imlib2.SlackBuild
index cdcc0c5176..ad3669cdc5 100644
--- a/libraries/imlib2/imlib2.SlackBuild
+++ b/libraries/imlib2/imlib2.SlackBuild
@@ -1,15 +1,16 @@
#!/bin/sh
-# Slackware build script for Imlib2
+# Slackware build script for Imlib2
# Written by Chess Griffin <chess at chessgriffin dot com>
# Modified by the SlackBuilds.org project
-PRGNAM=imlib2
-VERSION=1.4.0
+PRGNAM=imlib2
+VERSION=1.4.2
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -19,14 +20,18 @@ if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
fi
+set -e
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
-cd $TMP || exit 1
+cd $TMP
rm -rf $PRGNAM-$VERSION
-tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
-cd $PRGNAM-$VERSION || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -36,16 +41,17 @@ CXXFLAGS="$SLKCFLAGS" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
- || exit 1
+ --enable-static=no \
+ --build=$ARCH-slackware-linux
-make || exit 1
-make install-strip DESTDIR=$PKG || exit 1
+make
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS ChangeLog COPYING COPYING-PLAIN README README.in \
-INSTALL NEWS TODO Doxyfile doc/* $PKG/usr/doc/$PRGNAM-$VERSION
-find $PKG/usr/doc -name "Makefile*" -exec rm {} \;
+cp -a AUTHORS COPYING* ChangeLog INSTALL NEWS README TODO doc/* \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/Makefile*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc