From ca23c84aed69d40eca140b12efef869c321beaaa Mon Sep 17 00:00:00 2001 From: dsomero Date: Fri, 21 May 2010 22:55:12 -0400 Subject: [PATCH] libraries/tagpy: Miscellaneous cleanups. --- libraries/tagpy/tagpy.SlackBuild | 13 +++++++++++-- 1 file 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