audio/gogglesmm: Use lib64 on x86_64.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2016-12-09 16:11:27 +00:00
parent 075ebb2daf
commit 2c7043e720

View file

@ -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