diff options
author | Eric Hameleers <alien@slackware.com> | 2010-02-11 09:10:35 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2010-02-11 09:10:35 +0000 |
commit | 06fef74c9e37ac7b2c007a5903c36172df481728 (patch) | |
tree | ccc84504f164b9f763bd4db94e69362c125bec0a /gecko-mediaplayer | |
parent | b720ad8b89dd7a6303894aad24968eb33747e970 (diff) | |
download | asb-06fef74c9e37ac7b2c007a5903c36172df481728.tar.gz asb-06fef74c9e37ac7b2c007a5903c36172df481728.tar.xz |
Update to 0.9.9
Diffstat (limited to 'gecko-mediaplayer')
-rwxr-xr-x | gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild b/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild index 196f4a73..ce92ccbe 100755 --- a/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild +++ b/gecko-mediaplayer/build/gecko-mediaplayer.SlackBuild @@ -32,6 +32,8 @@ # Changelog: # 0.9.8-1: 20/Oct/2009 by Eric Hameleers <alien@slackware.com> # * Initial build. +# 0.9.9-1: 11/feb/2010 by Eric Hameleers <alien@slackware.com> +# * Upgrade. # # Run 'sh gecko-mediaplayer.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -42,8 +44,7 @@ # Set initial variables: PRGNAM=gecko-mediaplayer -VERSION=${VERSION:-0.9.8} -ARCH=${ARCH:-x86_64} +VERSION=${VERSION:-0.9.9} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -66,25 +67,35 @@ SRCURL="http://gecko-mediaplayer.googlecode.com/files/${PRGNAM}-${VERSION}.tar.g ## --- with a little luck, you won't have to edit below this point --- ## ## -# Exit the script on errors: -set -e -trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR -# Catch unitialized variables: -set -u -P1=${1:-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 case "$ARCH" in i486) SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; - s390) SLKCFLAGS="-O2" - SLKLDFLAGS=""; LIBDIRSUFFIX="" - ;; x86_64) SLKCFLAGS="-O2 -fPIC" SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" ;; + *) SLKCFLAGS="-O2" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; esac +# Exit the script on errors: +set -e +trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR +# Catch unitialized variables: +set -u +P1=${1:-1} + # Create working directories: mkdir -p $OUTPUT # place for the package to be saved mkdir -p $TMP/tmp-$PRGNAM # location to build the source |