summaryrefslogtreecommitdiffstats
path: root/faad2/build
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2010-01-30 22:05:36 +0000
committer Eric Hameleers <alien@slackware.com>2010-01-30 22:05:36 +0000
commit13d4f473ddee81392aae7611cc94191287827dad (patch)
tree89c4f8bb59f94afcb4c44352f768fcf6f065c353 /faad2/build
parentee8f7565aa0bf1b46ed502d302df5047e2c1161d (diff)
downloadasb-13d4f473ddee81392aae7611cc94191287827dad.tar.gz
asb-13d4f473ddee81392aae7611cc94191287827dad.tar.xz
Updated for Slackware 13
Diffstat (limited to 'faad2/build')
-rwxr-xr-xfaad2/build/faad2.SlackBuild64
1 files changed, 32 insertions, 32 deletions
diff --git a/faad2/build/faad2.SlackBuild b/faad2/build/faad2.SlackBuild
index 3031ed3a..1509ee55 100755
--- a/faad2/build/faad2.SlackBuild
+++ b/faad2/build/faad2.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright (c) 2009 Eric Hameleers <alien@slackware.com>
+# Copyright (c) 2009,2010 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -32,6 +32,8 @@
# Changelog:
# 2.7-1: 19/May/2009 by Eric Hameleers <alien@slackware.com>
# * Initial build.
+# 2.7-2: 30/Jan/2010 by Eric Hameleers <alien@slackware.com>
+# * Rebuild.
#
# Run 'sh faad2.SlackBuild' to build a Slackware package.
# The package (.tgz) and .txt file as well as build logs are created in /tmp .
@@ -43,8 +45,7 @@
PRGNAM=faad2
VERSION=${VERSION:-2.7}
-ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:" -j4 "}
TAG=${TAG:-alien}
@@ -65,31 +66,35 @@ SRCURL="http://downloads.sourceforge.net/faac/${PRGNAM}-${VERSION}.tar.bz2"
## --- 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=""
- ;;
- powerpc) SLKCFLAGS="-O2"
- SLKLDFLAGS=""; LIBDIRSUFFIX=""
- ;;
x86_64) SLKCFLAGS="-O2 -fPIC"
SLKLDFLAGS="-L/usr/lib64"; LIBDIRSUFFIX="64"
;;
- athlon-xp) SLKCFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
+ *) 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
@@ -140,25 +145,20 @@ echo Building ...
LDFLAGS="$SLKLDFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
CFLAGS="$SLKCFLAGS" \
-./configure --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --mandir=/usr/man \
- --localstatedir=/var \
- --sysconfdir=/etc \
- --enable-static \
- --enable-shared \
- --build=$ARCH-slackware-linux \
- 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --mandir=/usr/man \
+ --localstatedir=/var \
+ --sysconfdir=/etc \
+ --enable-static \
+ --enable-shared \
+ --build=$ARCH-slackware-linux \
+ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
# Install all the needed stuff to the package dir
-# Use installwatch if available, to produce a logfile of the installation
-# process that is more easily readable:
-if $(which installwatch > /dev/null 2>&1); then
- installwatch -o $OUTPUT/install-${PRGNAM}.log make DESTDIR=$PKG install
-else
- make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
-fi
+make DESTDIR=$PKG install 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
# Additionally, install libmp4ff
install -m 755 common/mp4ff/libmp4ff.a $PKG/usr/lib${LIBDIRSUFFIX}