summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Spencer <idlemoor@slackbuilds.org>2016-12-09 16:11:27 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2016-12-10 00:57:38 +0000
commit2c7043e720880b3cbc3dfd6826ab34afdbb36a37 (patch)
tree14f11252a1b141f7915c66c4f5fcdbea1ce8cddd
parent075ebb2daf33859691ac16531f0af5791379da9f (diff)
downloadslackbuilds-2c7043e720880b3cbc3dfd6826ab34afdbb36a37.tar.gz
audio/gogglesmm: Use lib64 on x86_64.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r--audio/gogglesmm/gogglesmm.SlackBuild17
1 files changed, 9 insertions, 8 deletions
diff --git a/audio/gogglesmm/gogglesmm.SlackBuild b/audio/gogglesmm/gogglesmm.SlackBuild
index 2c31c3e4c4..a32c4c6f6d 100644
--- a/audio/gogglesmm/gogglesmm.SlackBuild
+++ b/audio/gogglesmm/gogglesmm.SlackBuild
@@ -31,7 +31,7 @@ DOCS="AUTHORS ChangeLog COPYING INSTALL README"
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -42,18 +42,18 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
- LIBDIRSUFFIX=""
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRCONFIG=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
+ LIBDIRCONFIG=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
+ LIBDIRCONFIG="--lib64"
else
SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
+ LIBDIRCONFIG=""
fi
set -e
@@ -75,7 +75,8 @@ CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --mandir=/usr/man
+ --mandir=/usr/man \
+ $LIBDIRCONFIG
make
make install DESTDIR=$PKG