summaryrefslogtreecommitdiff
path: root/libraries
diff options
context:
space:
mode:
authordsomero <xgizzmo@gmail.com>2010-05-21 22:55:12 -0400
committerDavid Somero <xgizzmo@slackbuilds.org>2010-05-23 23:15:20 -0500
commitca23c84aed69d40eca140b12efef869c321beaaa (patch)
treec1389f5d9d950817384f4fc4c6b5e6e7800f3b3c /libraries
parent417a08e001f53e6b1c2186c7d5afc8b5f4cd5ea3 (diff)
downloadslackbuilds-ca23c84aed69d40eca140b12efef869c321beaaa.tar.gz
libraries/tagpy: Miscellaneous cleanups.
Diffstat (limited to 'libraries')
-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