diff options
author | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:46 -0400 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-06-04 01:02:46 -0400 |
commit | d591e898f6a24de88c34dc1c457454b1ae28e270 (patch) | |
tree | a2c052831ab116d8fdd9bebd356f93756acb5138 /development/freeglut/freeglut.SlackBuild | |
parent | c5210c869eef019b97917e06920fda9e6eaac55c (diff) | |
download | slackbuilds-d591e898f6a24de88c34dc1c457454b1ae28e270.tar.gz |
development/freeglut: Misc automated cleanups.
Signed-off-by: David Somero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/freeglut/freeglut.SlackBuild')
-rw-r--r-- | development/freeglut/freeglut.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/development/freeglut/freeglut.SlackBuild b/development/freeglut/freeglut.SlackBuild index 53fc4f6b7e..2c14e6474a 100644 --- a/development/freeglut/freeglut.SlackBuild +++ b/development/freeglut/freeglut.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=freeglut VERSION=${VERSION:-2.6.0} -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 |