summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libraries/tagpy/tagpy.SlackBuild13
1 files changed, 11 insertions, 2 deletions
diff --git a/libraries/tagpy/tagpy.SlackBuild b/libraries/tagpy/tagpy.SlackBuild
index 492c099371..eb05e98a1c 100644
--- a/libraries/tagpy/tagpy.SlackBuild
+++ b/libraries/tagpy/tagpy.SlackBuild
@@ -24,10 +24,19 @@
PRGNAM=tagpy
VERSION=${VERSION:-0.94.5}
-ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+# Automatically determine the architecture we're building on:
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) export ARCH=i486 ;;
+ arm*) export ARCH=arm ;;
+ # Unless $ARCH is already set, use uname -m for all other archs:
+ *) export ARCH=$( uname -m ) ;;
+ esac
+fi
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -62,7 +71,7 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--boost-inc-dir=/usr/include/boost \
--boost-lib-dir=/usr/lib \
- --boost-python-libname=boost_python-mt \
+ --boost-python-libname=boost_python \
--taglib-inc-dir=/usr/include/taglib \
|| exit 1