misc/cksfv: miscellaneous cleanups

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
Matteo Bernardini 2010-05-29 11:46:11 +02:00 committed by Robby Workman
parent de5a80a765
commit 0b84adc4ff

View file

@ -31,9 +31,19 @@
PRGNAM=cksfv PRGNAM=cksfv
VERSION=1.3.14 VERSION=1.3.14
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} 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) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM PKG=$TMP/package-$PRGNAM
@ -45,6 +55,8 @@ elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi fi
set -e set -e