summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authorErik Hanson <erik@slackbuilds.org>2010-05-12 17:40:39 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-12 17:40:39 +0200
commitb21ed75f0d1818f62bab7a6dc09c3f0c9dbec6a5 (patch)
tree3a18e00c3088278e26b15bc34604e3d24737d76f /libraries
parente44576383d1c9b6b479aa19bdd45fcc1b93f8417 (diff)
downloadslackbuilds-b21ed75f0d1818f62bab7a6dc09c3f0c9dbec6a5.tar.gz
libraries/freealut: Updated for version 1.1.0
Diffstat (limited to 'libraries')
-rw-r--r--libraries/freealut/freealut.SlackBuild22
1 files changed, 16 insertions, 6 deletions
diff --git a/libraries/freealut/freealut.SlackBuild b/libraries/freealut/freealut.SlackBuild
index 551b99f844..a8ec54783c 100644
--- a/libraries/freealut/freealut.SlackBuild
+++ b/libraries/freealut/freealut.SlackBuild
@@ -9,22 +9,28 @@ VERSION=1.1.0
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i386" ]; then
- SLKCFLAGS="-O2 -march=i386 -mtune=i686"
-elif [ "$ARCH" = "i486" ]; then
+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
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf freealut-$VERSION
-tar -zxvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd freealut-$VERSION || exit 1
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -32,16 +38,20 @@ chmod -R u+w,go+r-w,a-s .
CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
--localstatedir=/var/lib \
+ --build=$ARCH-slackware-linux \
|| exit 1
make || exit 1
make install DESTDIR=$PKG || exit 1
( cd $PKG
- find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
- 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
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
)
# No man/info pages in freealut