diff options
Diffstat (limited to '')
-rwxr-xr-x | pasture/source/gxine/gxine.SlackBuild (renamed from source/xap/gxine/gxine.SlackBuild) | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/source/xap/gxine/gxine.SlackBuild b/pasture/source/gxine/gxine.SlackBuild index d9b75d0b4..172d17aa2 100755 --- a/source/xap/gxine/gxine.SlackBuild +++ b/pasture/source/gxine/gxine.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -20,11 +20,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -VERSION=0.5.903 -ARCH=${ARCH:-x86_64} -BUILD=${BUILD:-2} - -NUMJOBS=${NUMJOBS:-" -j7 "} +VERSION=0.5.905 +BUILD=${BUILD:-1} + +# 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 if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" @@ -35,8 +42,13 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi +NUMJOBS=${NUMJOBS:-" -j7 "} + CWD=$(pwd) TMP=${TMP:-/tmp} PKG=$TMP/package-gxine |