diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-19 22:14:25 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:39:19 -0500 |
commit | d69b52378f956431d7f0cdd6d66ec12bb1ff16da (patch) | |
tree | 19e8ecc452e7bbedd2564d68554c84f2dc61c4d5 /libraries/libflashsupport/libflashsupport.SlackBuild | |
parent | 006014d7b8e989fa549b2cc70f3b6c65f5cddf3d (diff) | |
download | slackbuilds-d69b52378f956431d7f0cdd6d66ec12bb1ff16da.tar.gz |
libraries/libflashsupport: Miscellaneous cleanups.
The notes about pulseaudio support were removed from the README
since we don't have pulseaudio in our repo any more.
Diffstat (limited to 'libraries/libflashsupport/libflashsupport.SlackBuild')
-rw-r--r-- | libraries/libflashsupport/libflashsupport.SlackBuild | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libraries/libflashsupport/libflashsupport.SlackBuild b/libraries/libflashsupport/libflashsupport.SlackBuild index 456fd1d246..fa5831da21 100644 --- a/libraries/libflashsupport/libflashsupport.SlackBuild +++ b/libraries/libflashsupport/libflashsupport.SlackBuild @@ -26,10 +26,19 @@ PRGNAM=libflashsupport VERSION=${VERSION:-20080328} -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 @@ -47,6 +56,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |