diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:33:49 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-21 01:33:49 -0500 |
commit | 170b31b6389a0383e0edd05a6a55e74fcd04c045 (patch) | |
tree | fd0c665d50bc5fce14c1cce585eacbdb9c772561 | |
parent | b551bf0bf0adb1acea6ffc8bfb1466dcdcb1060f (diff) |
libraries/libofa: Miscellaneous cleanups.
This modified the gcc-4.3 patch to include stdio.h
-rw-r--r-- | libraries/libofa/README | 2 | ||||
-rw-r--r-- | libraries/libofa/libofa-0.9.3-gcc-4.3.patch | 22 | ||||
-rw-r--r-- | libraries/libofa/libofa.SlackBuild | 14 |
3 files changed, 24 insertions, 14 deletions
diff --git a/libraries/libofa/README b/libraries/libofa/README index 17e4a0bdd82b3..47a29c6b99508 100644 --- a/libraries/libofa/README +++ b/libraries/libofa/README @@ -1,4 +1,2 @@ LibOFA (Library Open Fingerprint Architecture) is an open-source audio fingerprint created and provided by MusicIP (http://www.musicip.com) - -This requires fftw. diff --git a/libraries/libofa/libofa-0.9.3-gcc-4.3.patch b/libraries/libofa/libofa-0.9.3-gcc-4.3.patch index f68f42bfb1290..22e8f76164455 100644 --- a/libraries/libofa/libofa-0.9.3-gcc-4.3.patch +++ b/libraries/libofa/libofa-0.9.3-gcc-4.3.patch @@ -1,19 +1,19 @@ -diff -ur libofa-0.9.3.orig/examples/example.cpp libofa-0.9.3/examples/example.cpp ---- libofa-0.9.3.orig/examples/example.cpp 2006-05-10 21:05:37.000000000 +0300 -+++ libofa-0.9.3/examples/example.cpp 2008-04-16 15:51:49.000000000 +0300 -@@ -9,6 +9,8 @@ +diff -Nur libofa-0.9.3.orig//examples/example.cpp libofa-0.9.3/examples/example.cpp +--- libofa-0.9.3.orig//examples/example.cpp 2006-05-10 13:05:37.000000000 -0500 ++++ libofa-0.9.3/examples/example.cpp 2010-05-21 00:41:32.566411537 -0500 +@@ -9,6 +9,9 @@ #include "protocol.h" +#include <string.h> ++#include <stdio.h> + AudioData* loadWaveFile(char *file); AudioData* loadDataUsingLAME(char *file); -Vain hakemistossa libofa-0.9.3/examples: example.cpp.orig -diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp ---- libofa-0.9.3.orig/examples/protocol.cpp 2006-05-10 21:05:42.000000000 +0300 -+++ libofa-0.9.3/examples/protocol.cpp 2008-04-16 15:51:49.000000000 +0300 +diff -Nur libofa-0.9.3.orig//examples/protocol.cpp libofa-0.9.3/examples/protocol.cpp +--- libofa-0.9.3.orig//examples/protocol.cpp 2006-05-10 13:05:42.000000000 -0500 ++++ libofa-0.9.3/examples/protocol.cpp 2010-05-21 00:41:21.948412917 -0500 @@ -8,6 +8,7 @@ -------------------------------------------------------------------*/ #include <stdio.h> @@ -22,9 +22,9 @@ diff -ur libofa-0.9.3.orig/examples/protocol.cpp libofa-0.9.3/examples/protocol. #include <string> #include <map> #include <expat.h> -diff -ur libofa-0.9.3.orig/lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp ---- libofa-0.9.3.orig/lib/signal_op.cpp 2006-05-10 21:01:12.000000000 +0300 -+++ libofa-0.9.3/lib/signal_op.cpp 2008-04-16 15:51:49.000000000 +0300 +diff -Nur libofa-0.9.3.orig//lib/signal_op.cpp libofa-0.9.3/lib/signal_op.cpp +--- libofa-0.9.3.orig//lib/signal_op.cpp 2006-05-10 13:01:12.000000000 -0500 ++++ libofa-0.9.3/lib/signal_op.cpp 2010-05-21 00:41:21.948412917 -0500 @@ -12,6 +12,7 @@ // DATE CREATED: 1/12/06 diff --git a/libraries/libofa/libofa.SlackBuild b/libraries/libofa/libofa.SlackBuild index 02d9d0087bca3..99f0c2e368a36 100644 --- a/libraries/libofa/libofa.SlackBuild +++ b/libraries/libofa/libofa.SlackBuild @@ -4,10 +4,19 @@ PRGNAM=libofa VERSION=${VERSION:-0.9.3} -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# 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 + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -22,6 +31,9 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e |