diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:08:41 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:08:41 -0400 |
commit | 91f5c826549929e86aa6ef825e7b5d3d68d7e0dd (patch) | |
tree | 1a7c3812ea0d67e07cce95264eb28c5a4b34e85b /libraries/libquicktime/libquicktime.SlackBuild | |
parent | 08023550887f411ab09619ff83b84b1ed4ee2540 (diff) | |
download | slackbuilds-91f5c826549929e86aa6ef825e7b5d3d68d7e0dd.tar.gz |
libraries/libquicktime: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/libquicktime/libquicktime.SlackBuild')
-rw-r--r-- | libraries/libquicktime/libquicktime.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/libquicktime/libquicktime.SlackBuild b/libraries/libquicktime/libquicktime.SlackBuild index cac6327c29..c85e998488 100644 --- a/libraries/libquicktime/libquicktime.SlackBuild +++ b/libraries/libquicktime/libquicktime.SlackBuild @@ -24,10 +24,19 @@ PRGNAM=libquicktime VERSION=1.1.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) 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 @@ -42,6 +51,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |