diff options
Diffstat (limited to 'source/kde/kdewebdev/tidy/tidy.build')
-rwxr-xr-x | source/kde/kdewebdev/tidy/tidy.build | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/source/kde/kdewebdev/tidy/tidy.build b/source/kde/kdewebdev/tidy/tidy.build index ee7b821f..b638b24e 100755 --- a/source/kde/kdewebdev/tidy/tidy.build +++ b/source/kde/kdewebdev/tidy/tidy.build @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright 2006, 2007, 2008, 2009 Patrick J. Volkerding, Sebeka, MN, USA +# Copyright 2006, 2007, 2008, 2009, 2010 Patrick J. Volkerding, Sebeka, MN, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,10 +24,19 @@ # New cvs version - 20080502 PKGNAM=tidy -VERSION=20090604T2303 -ARCH=${ARCH:-x86_64} +VERSION=20100503T2309 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 + CWD=$(pwd) TMP=${TMP:-/tmp} @@ -42,6 +51,9 @@ elif [ "$ARCH" = "s390" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi cd $TMP |