summaryrefslogtreecommitdiffstats
path: root/icecast
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2013-10-15 15:30:29 +0000
committer Eric Hameleers <alien@slackware.com>2013-10-15 15:30:29 +0000
commitf3b47ac2882756c93d05ceca0eb6ce8f74959695 (patch)
tree99416a718e68ec79e4396396dbcf50f82ea2e5ec /icecast
parent9c85f52541b00d05ad4875f39198cc7a0285ce8e (diff)
downloadasb-f3b47ac2882756c93d05ceca0eb6ce8f74959695.tar.gz
asb-f3b47ac2882756c93d05ceca0eb6ce8f74959695.tar.xz
Updated to 2.3.1
Diffstat (limited to 'icecast')
-rwxr-xr-xicecast/build/libshout.SlackBuild37
1 files changed, 27 insertions, 10 deletions
diff --git a/icecast/build/libshout.SlackBuild b/icecast/build/libshout.SlackBuild
index f87a44bc..641aba7c 100755
--- a/icecast/build/libshout.SlackBuild
+++ b/icecast/build/libshout.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2004,2006,2010 Eric Hameleers, Eindhoven, NL
+# Copyright 2004, 2006, 2010, 2013 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -36,6 +36,8 @@
# * disable threading (older perl do not support it).
# 2.2.2-1: 16/Sep/2010 by Eric Hameleers <alien@slackware.com>
# * Updated for Slackware 13.1
+# 2.3.1-1: 15/oct/2013 by Eric Hameleers <alien@slackware.com>
+# * Updated for Slackware 14.
#
# Run 'sh libshout.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -46,7 +48,7 @@
# Set initial variables:
PRGNAM=libshout
-VERSION=${VERSION:-2.2.2}
+VERSION=${VERSION:-2.3.1}
BUILD=${BUILD:-1}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -67,12 +69,15 @@ SRCURL="http://downloads.us.xiph.org/releases/${PRGNAM}/${PRGNAM}-${VERSION}.tar
##
# 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
@@ -83,11 +88,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
@@ -110,10 +126,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
@@ -158,7 +175,7 @@ CFLAGS="$SLKCFLAGS" \
--disable-thread \
--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