summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTreeve Jelbert2007-08-07 23:30:43 +0200
committerEric Sandall2007-08-07 20:29:44 -0700
commit6413b5de22ae252c40fa1518f48f2a7298fd8c54 (patch)
tree297124165c9576625647069ccae5f0b9df38e4a0
parent87404c1f8aa63a57bc9344f170417b1ef46be7d0 (diff)
libofa-0.9.3
-rw-r--r--ChangeLog4
-rwxr-xr-xaudio-libs/libofa/DEPENDS4
-rwxr-xr-xaudio-libs/libofa/DETAILS24
-rw-r--r--audio-libs/libofa/HISTORY5
-rwxr-xr-xaudio-libs/libofa/PRE_BUILD3
-rw-r--r--audio-libs/libofa/tnt.diff36
6 files changed, 76 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f21387160d..bf06fa42ec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-08-09 Treeve Jelbert <treeve@sourcemage.org>
+ * audio-libs/libofa: new spell : music fingerprints
+ needed by latet libtunepimp
+
2007-07-30 Juuso Alasuutari <iuso@sourcemage.org>
* security/zzuf: New spell, an application input fuzzer.
diff --git a/audio-libs/libofa/DEPENDS b/audio-libs/libofa/DEPENDS
new file mode 100755
index 0000000000..216a76097a
--- /dev/null
+++ b/audio-libs/libofa/DEPENDS
@@ -0,0 +1,4 @@
+depends g++ &&
+depends expat &&
+depends curl &&
+depends fftw
diff --git a/audio-libs/libofa/DETAILS b/audio-libs/libofa/DETAILS
new file mode 100755
index 0000000000..d78cbc91de
--- /dev/null
+++ b/audio-libs/libofa/DETAILS
@@ -0,0 +1,24 @@
+ SPELL=libofa
+ VERSION=0.9.3
+ SOURCE_HASH=sha512:058fb43ea296325d2f7ad1762e1fd3f2ad772754b5d53dbaa1c5cd91ac5041ef82c7ea9ac580825e2391fa7db6803ff7fd5b24faf319280211a4641516126967
+ SOURCE=$SPELL-$VERSION.tar.gz
+# SOURCE2=$SOURCE.sig
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SOURCE_URL[0]=http://www.musicip.com/dns/files/$SOURCE
+# SOURCE2_URL[0]=${SOURCE_URL[0]}.sig
+# SOURCE_GPG=gnu.gpg:$SOURCE.sig:UPSTREAM_KEY
+# SOURCE2_IGNORE=signature
+ WEB_SITE=http://www.musicip.com
+# WEB_SITE=http://search.cpan.org/search?query=$SPELL
+# SOURCE_URL[0]=http://.../$SOURCE
+# SOURCE_URL[0]=$WEB_SITE/$SOURCE
+ LICENSE[0]=GPL
+ ENTERED=20070708
+ KEYWORDS="sound"
+ SHORT="acoustic fingerprint"
+cat << EOF
+Open Fingerprint Architecture normalizes, extracts frequencies, and creates
+an array representing the frequency data in an audio file.
+This data-chunk (so called acoustic fingerprint) was designed for use with
+the MusicDNS service.
+EOF
diff --git a/audio-libs/libofa/HISTORY b/audio-libs/libofa/HISTORY
new file mode 100644
index 0000000000..bc6e88fb30
--- /dev/null
+++ b/audio-libs/libofa/HISTORY
@@ -0,0 +1,5 @@
+2007-08-03 Treeve Jelbert <treeve@sourcemage.org>
+ * DETAILS: version 0.9.3
+ * PRE_BUILD, tnt.diff: apply upstream patch
+ spell created
+
diff --git a/audio-libs/libofa/PRE_BUILD b/audio-libs/libofa/PRE_BUILD
new file mode 100755
index 0000000000..fe8ace55b8
--- /dev/null
+++ b/audio-libs/libofa/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd $SOURCE_DIRECTORY &&
+patch -p0 < $SPELL_DIRECTORY/tnt.diff
diff --git a/audio-libs/libofa/tnt.diff b/audio-libs/libofa/tnt.diff
new file mode 100644
index 0000000000..57425a1527
--- /dev/null
+++ b/audio-libs/libofa/tnt.diff
@@ -0,0 +1,36 @@
+--- lib/JAMA/tnt_math_utils.h 2007-08-07 23:11:47.000000000 +0200
++++ tnt_math_utils.h 2007-08-07 23:03:47.000000000 +0200
+@@ -19,6 +19,16 @@
+
+ namespace TNT
+ {
++
++/**
++ @returns the absolute value of a real (no-complex) scalar.
++*/
++template <class Real>
++Real abs(const Real &a)
++{
++ return (a > 0 ? a : -a);
++}
++
+ /**
+ @returns hypotenuse of real (non-complex) scalars a and b by
+ avoiding underflow/overflow
+@@ -55,16 +65,7 @@
+ return a > b ? a : b;
+ }
+ */
+-
+-/**
+- @returns the absolute value of a real (no-complex) scalar.
+-*/
+-template <class Real>
+-Real abs(const Real &a)
+-{
+- return (a > 0 ? a : -a);
+ }
+
+-}
+ #endif
+ /* MATH_UTILS_H */