diff options
author | Eric Hameleers <alien@slackware.com> | 2013-10-15 15:33:28 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-10-15 15:33:28 +0000 |
commit | 2f77327ed2c40d0739aa9f93e167d0ef94ffac8b (patch) | |
tree | d748236e11327c29ffc24f7a2b867f6d92ab302c /icecast/build/icecast.SlackBuild | |
parent | f3b47ac2882756c93d05ceca0eb6ce8f74959695 (diff) | |
download | asb-2f77327ed2c40d0739aa9f93e167d0ef94ffac8b.tar.gz asb-2f77327ed2c40d0739aa9f93e167d0ef94ffac8b.tar.xz |
Updated to 2.3.3
Diffstat (limited to 'icecast/build/icecast.SlackBuild')
-rwxr-xr-x | icecast/build/icecast.SlackBuild | 37 |
1 files changed, 27 insertions, 10 deletions
diff --git a/icecast/build/icecast.SlackBuild b/icecast/build/icecast.SlackBuild index 57fe7901..33917373 100755 --- a/icecast/build/icecast.SlackBuild +++ b/icecast/build/icecast.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2004,2005,2006,2010 Eric Hameleers <alien@slackware.com> +# Copyright 2004, 2005, 2006, 2010, 2013 Eric Hameleers <alien@slackware.com> # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -51,6 +51,8 @@ # New release. # 2.3.2-1: 15/Sep/2010 by Eric Hameleers <alien@slackware.com> # * New release and build for Slackware 13.1. +# 2.3.3-1: 15/oct/2013 by Eric Hameleers <alien@slackware.com> +# * Updated for Slackware 14. # # Run 'sh icecast.SlackBuild' to build a Slackware package. # The package (.tgz) and .txt file as well as build logs are created in /tmp . @@ -61,7 +63,7 @@ # Set initial variables: PRGNAM=icecast -VERSION=${VERSION:-2.3.2} +VERSION=${VERSION:-2.3.3} BUILD=${BUILD:-1} NUMJOBS=${NUMJOBS:" -j4 "} TAG=${TAG:-alien} @@ -90,12 +92,15 @@ SRCURL="http://downloads.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar.gz ## # Automatically determine the architecture we're building on: +MARCH=$( uname -m ) if [ -z "$ARCH" ]; then - case "$( uname -m )" in - i?86) export ARCH=i486 ;; - arm*) export ARCH=arm ;; + case "$MARCH" in + i?86) export ARCH=i486 ;; + armv7hl) export ARCH=$MARCH ;; + armv6hl) export ARCH=$MARCH ;; + arm*) export ARCH=arm ;; # Unless $ARCH is already set, use uname -m for all other archs: - *) export ARCH=$( uname -m ) ;; + *) export ARCH=$MARCH ;; esac fi @@ -106,11 +111,22 @@ case "$ARCH" in x86_64) SLKCFLAGS="-O2 -fPIC" SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64" ;; + armv7hl) SLKCFLAGS="-O2 -march=armv7-a -mfpu=vfpv3-d16" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; + armv6hl) SLKCFLAGS="-O2 -march=armv6 -mfpu=vfp -mfloat-abi=hard" + SLKLDFLAGS=""; LIBDIRSUFFIX="" + ;; *) SLKCFLAGS="-O2" SLKLDFLAGS=""; LIBDIRSUFFIX="" ;; esac +case "$ARCH" in + arm*) TARGET=$ARCH-slackware-linux-gnueabi ;; + *) TARGET=$ARCH-slackware-linux ;; +esac + # Exit the script on errors: set -e trap 'echo "$0 FAILED at line ${LINENO}" | tee $OUTPUT/error-${PRGNAM}.log' ERR @@ -133,10 +149,11 @@ rm -rf $OUTPUT/{configure,make,install,error,makepkg}-$PRGNAM.log # Source file availability: if ! [ -f ${SOURCE} ]; then + echo "Source '$(basename ${SOURCE})' not available yet..." + # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT + [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" + if [ -f ${SOURCE} ]; then echo "Ah, found it!"; continue; fi if ! [ "x${SRCURL}" == "x" ]; then - # Check if the $SRCDIR is writable at all - if not, download to $OUTPUT - [ -w "$SRCDIR" ] || SOURCE="$OUTPUT/$(basename $SOURCE)" - echo "Source '$(basename ${SOURCE})' not available yet..." echo "Will download file to $(dirname $SOURCE)" wget -nv -T 20 -O "${SOURCE}" "${SRCURL}" || true if [ $? -ne 0 -o ! -s "${SOURCE}" ]; then @@ -192,7 +209,7 @@ CFLAGS="$SLKCFLAGS" \ --sysconfdir=/etc/icecast \ --program-prefix= \ --program-suffix= \ - --build=$ARCH-slackware-linux \ + --build=$TARGET \ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log make $NUMJOBS 2>&1 | tee $OUTPUT/make-${PRGNAM}.log |