diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:49 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:49 -0400 |
commit | c94dc6e435ad3d453fdaffeda1d8b20228c36d99 (patch) | |
tree | 12d2b5c87fea6689370919c315ebbb24334293d5 /libraries/gst-python | |
parent | 60827a783ca72e8c593ed992e0e8df934b984cdf (diff) |
libraries/gst-python: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/gst-python')
-rw-r--r-- | libraries/gst-python/gst-python.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/gst-python/gst-python.SlackBuild b/libraries/gst-python/gst-python.SlackBuild index 97eeb269ab0f..c4cedb4f9eae 100644 --- a/libraries/gst-python/gst-python.SlackBuild +++ b/libraries/gst-python/gst-python.SlackBuild @@ -7,10 +7,19 @@ PRGNAM=gst-python VERSION=0.10.15 -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) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -25,6 +34,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |