summaryrefslogtreecommitdiff
path: root/libraries/libflashsupport
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-05-19 22:14:25 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-05-21 01:39:19 -0500
commitd69b52378f956431d7f0cdd6d66ec12bb1ff16da (patch)
tree19e8ecc452e7bbedd2564d68554c84f2dc61c4d5 /libraries/libflashsupport
parent006014d7b8e989fa549b2cc70f3b6c65f5cddf3d (diff)
downloadslackbuilds-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')
-rw-r--r--libraries/libflashsupport/README6
-rw-r--r--libraries/libflashsupport/libflashsupport.SlackBuild14
2 files changed, 13 insertions, 7 deletions
diff --git a/libraries/libflashsupport/README b/libraries/libflashsupport/README
index 96c507c90b..0d08c5a011 100644
--- a/libraries/libflashsupport/README
+++ b/libraries/libflashsupport/README
@@ -2,9 +2,3 @@ libflashsupport is an additional library for Adobe Flash Player adding
support for TLS, OSS and optionally PulseAudio.
This library is known to solve problems about missing audio from Flash
content, like videos embedded into web pages.
-
-To build with PulseAudio support, start the script with PULSE=yes, as
-in:
- PULSE=yes ./libflashsupport.SlackBuild
-This requires that you have already installed pulseaudio, available
-from SlackBuilds.org.
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