diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:26 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:06:26 -0400 |
commit | b9694a01a229aae559471e46d454ed7c9deb9367 (patch) | |
tree | 57e2f97f00351a5b0afdb1b0260c27ff8db84855 /libraries/eet/eet.SlackBuild | |
parent | 254febcd53a1d0de555f665676b993fecc0651fd (diff) |
libraries/eet: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'libraries/eet/eet.SlackBuild')
-rw-r--r-- | libraries/eet/eet.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/eet/eet.SlackBuild b/libraries/eet/eet.SlackBuild index 76de714b0e7c3..63624f917da10 100644 --- a/libraries/eet/eet.SlackBuild +++ b/libraries/eet/eet.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=eet VERSION=${VERSION:-1.2.3} -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 @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |