From d49ef225aea62c60e83ecf88f73910a54ca9c15b Mon Sep 17 00:00:00 2001 From: dsomero Date: Thu, 27 May 2010 04:03:31 -0400 Subject: libraries/audiere: Miscellaneous cleanups and gcc4.4 patch. --- libraries/audiere/audiere.SlackBuild | 18 +++++++-- .../audiere/patches/audiere-1.9.4-gcc43.patch | 30 --------------- .../audiere/patches/audiere-1.9.4-gcc44.patch | 43 ++++++++++++++++++++++ 3 files changed, 58 insertions(+), 33 deletions(-) delete mode 100644 libraries/audiere/patches/audiere-1.9.4-gcc43.patch create mode 100644 libraries/audiere/patches/audiere-1.9.4-gcc44.patch (limited to 'libraries') diff --git a/libraries/audiere/audiere.SlackBuild b/libraries/audiere/audiere.SlackBuild index 3324c250d2..7237ace1bd 100644 --- a/libraries/audiere/audiere.SlackBuild +++ b/libraries/audiere/audiere.SlackBuild @@ -6,10 +6,19 @@ PRGNAM=audiere VERSION=${VERSION:-1.9.4} -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -24,6 +33,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e @@ -41,7 +53,7 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -patch -p1 < $CWD/patches/audiere-1.9.4-gcc43.patch +patch -p1 < $CWD/patches/audiere-1.9.4-gcc44.patch patch -p1 < $CWD/patches/audiere-1.9.4-flac.patch patch -p1 < $CWD/patches/audiere-1.9.4-speex.patch diff --git a/libraries/audiere/patches/audiere-1.9.4-gcc43.patch b/libraries/audiere/patches/audiere-1.9.4-gcc43.patch deleted file mode 100644 index 865c820dd2..0000000000 --- a/libraries/audiere/patches/audiere-1.9.4-gcc43.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff -Naur audiere/src/audiere.h audiere.tpg/src/audiere.h ---- audiere/src/audiere.h 2004-11-28 01:41:59.000000000 +0000 -+++ audiere.tpg/src/audiere.h 2008-06-03 17:39:43.000000000 +0000 -@@ -29,6 +29,13 @@ - #include - #include - -+/* Headers for gcc-4.3 */ -+ -+/* strlen, strchr, etc. */ -+#include -+/* getenv, atexit, etc. */ -+#include -+ - #ifdef _MSC_VER - #pragma warning(disable : 4786) - #endif -diff -Naur audiere/src/debug.h audiere.tpg/src/debug.h ---- audiere/src/debug.h 2004-04-09 09:33:50.000000000 +0000 -+++ audiere.tpg/src/debug.h 2008-06-03 17:39:43.000000000 +0000 -@@ -6,6 +6,9 @@ - #include - #include - -+/* Headers for gcc-4.3 */ -+#include -+#include - - namespace audiere { - diff --git a/libraries/audiere/patches/audiere-1.9.4-gcc44.patch b/libraries/audiere/patches/audiere-1.9.4-gcc44.patch new file mode 100644 index 0000000000..a2211dce08 --- /dev/null +++ b/libraries/audiere/patches/audiere-1.9.4-gcc44.patch @@ -0,0 +1,43 @@ +diff -Naur audiere/src/audiere.h audiere.tpg/src/audiere.h +--- audiere/src/audiere.h 2004-11-28 01:41:59.000000000 +0000 ++++ audiere.tpg/src/audiere.h 2008-06-03 17:39:43.000000000 +0000 +@@ -29,6 +29,13 @@ + #include + #include + ++/* Headers for gcc-4.3 */ ++ ++/* strlen, strchr, etc. */ ++#include ++/* getenv, atexit, etc. */ ++#include ++ + #ifdef _MSC_VER + #pragma warning(disable : 4786) + #endif +diff -Naur audiere/src/debug.h audiere.tpg/src/debug.h +--- audiere/src/debug.h 2004-04-09 09:33:50.000000000 +0000 ++++ audiere.tpg/src/debug.h 2008-06-03 17:39:43.000000000 +0000 +@@ -6,6 +6,9 @@ + #include + #include + ++/* Headers for gcc-4.3 */ ++#include ++#include + + namespace audiere { + +diff -Naur audiere/src/utility.cpp b/src/utility.cpp +index f49c028..28fefc8 100644 +--- audiere/src/utility.cpp 2004-04-09 09:33:50.000000000 +0000 ++++ audiere.tpg/src/utility.cpp 2008-06-03 17:39:43.000000000 +0000 +@@ -2,7 +2,7 @@ + #pragma warning(disable : 4786) + #endif + +- ++#include + #include + #include "utility.h" + #include "internal.h" -- cgit v1.2.3