diff options
author | Eric Hameleers <alien@slackware.com> | 2013-10-15 15:51:03 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2013-10-15 15:51:03 +0000 |
commit | fa1d630563e922714690685b075de0599325a9da (patch) | |
tree | bb9c3b24d44d377ebc40ea463302f3726f5f33a0 /icecast/build/ices.SlackBuild | |
parent | 2f77327ed2c40d0739aa9f93e167d0ef94ffac8b (diff) | |
download | asb-fa1d630563e922714690685b075de0599325a9da.tar.gz asb-fa1d630563e922714690685b075de0599325a9da.tar.xz |
Fix man page installation. MOdernized the script a bit
Diffstat (limited to 'icecast/build/ices.SlackBuild')
-rwxr-xr-x | icecast/build/ices.SlackBuild | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/icecast/build/ices.SlackBuild b/icecast/build/ices.SlackBuild index 3b4bcc7d..405322ce 100755 --- a/icecast/build/ices.SlackBuild +++ b/icecast/build/ices.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh # $Id$ -# Copyright 2004,2005,2010 Eric Hameleers, Eindhoven, NL +# Copyright 2004,2005,2010, 2013 Eric Hameleers, Eindhoven, NL # All rights reserved. # # Permission to use, copy, modify, and distribute this software for @@ -71,12 +71,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 @@ -87,11 +90,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 @@ -114,10 +128,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 @@ -173,12 +188,13 @@ CFLAGS="$SLKCFLAGS" \ --without-flac --without-faad \ --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 make install \ prefix=$PKG/usr \ + mandir=$PKG/usr/man \ localstatedir=$PKG/var \ sysconfdir=$PKG/etc/icecast \ docdir=$PKG/usr/doc/$PRGNAM-$VERSION \ |