summaryrefslogtreecommitdiff
path: root/libraries/libmcrypt/libmcrypt.SlackBuild
diff options
context:
space:
mode:
authorFrank Gingras <francois.gingras@gmail.com>2010-05-12 17:41:29 +0200
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-12 17:41:29 +0200
commitd1f797f87236f5ae65a28eaf4a3fe9177e5b79f6 (patch)
tree389d278e73240fcf558e8a47415f27de1e9fa21e /libraries/libmcrypt/libmcrypt.SlackBuild
parentbd29eacdb8c299bdd7addc3edf58d195aee6748d (diff)
downloadslackbuilds-d1f797f87236f5ae65a28eaf4a3fe9177e5b79f6.tar.gz
libraries/libmcrypt: Updated for version 2.5.8
Diffstat (limited to 'libraries/libmcrypt/libmcrypt.SlackBuild')
-rw-r--r--libraries/libmcrypt/libmcrypt.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/libraries/libmcrypt/libmcrypt.SlackBuild b/libraries/libmcrypt/libmcrypt.SlackBuild
index 96c25166be..fcd447575b 100644
--- a/libraries/libmcrypt/libmcrypt.SlackBuild
+++ b/libraries/libmcrypt/libmcrypt.SlackBuild
@@ -17,10 +17,13 @@ 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"
fi
set -e # Exit on most errors
@@ -29,7 +32,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
cd $PRGNAM-$VERSION
chown -R root:root .
find . \
@@ -42,6 +45,7 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var \
--mandir=/usr/man \
@@ -50,14 +54,17 @@ CXXFLAGS="$SLKCFLAGS" \
--enable-static=no \
--program-prefix="" \
--program-suffix="" \
- --disable-posix-threads
+ --disable-posix-threads \
+ --build=$ARCH-slackware-linux
make
make install DESTDIR=$PKG
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
- find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
( cd $PKG/usr/man
@@ -66,7 +73,9 @@ make install DESTDIR=$PKG
)
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a AUTHORS INSTALL KNOWN-BUGS NEWS README THANKS TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS INSTALL KNOWN-BUGS NEWS README THANKS TODO \
+ $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install