amarok add dep

This commit is contained in:
alihanozturk
2017-01-07 22:12:07 +03:00
parent 85aa462aa4
commit 6bebecd336
17 changed files with 463 additions and 0 deletions
@@ -0,0 +1,35 @@
--- lib/JAMA/tnt_math_utils.h 2006-05-10 20:58:50.000000000 +0300
+++ lib/JAMA/tnt_math_utils.h 2007-07-27 16:20:01.000000000 +0300
@@ -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
@@ -56,15 +66,6 @@
}
*/
-/**
- @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 */
+35
View File
@@ -0,0 +1,35 @@
diff -up libofa-0.9.3/examples/example.cpp.gcc43 libofa-0.9.3/examples/example.cpp
--- libofa-0.9.3/examples/example.cpp.gcc43 2009-02-25 11:10:51.000000000 -0600
+++ libofa-0.9.3/examples/example.cpp 2009-02-25 11:12:00.000000000 -0600
@@ -7,6 +7,8 @@
-------------------------------------------------------------------*/
+#include <cstdio>
+#include <cstring>
#include "protocol.h"
AudioData* loadWaveFile(char *file);
diff -up libofa-0.9.3/examples/protocol.cpp.gcc43 libofa-0.9.3/examples/protocol.cpp
--- libofa-0.9.3/examples/protocol.cpp.gcc43 2009-02-25 11:10:51.000000000 -0600
+++ libofa-0.9.3/examples/protocol.cpp 2009-02-25 11:10:51.000000000 -0600
@@ -8,7 +8,7 @@
-------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
-#include <string>
+#include <cstring>
#include <map>
#include <expat.h>
#include <curl/curl.h>
diff -up libofa-0.9.3/lib/signal_op.cpp.gcc43 libofa-0.9.3/lib/signal_op.cpp
--- libofa-0.9.3/lib/signal_op.cpp.gcc43 2009-02-25 11:10:51.000000000 -0600
+++ libofa-0.9.3/lib/signal_op.cpp 2009-02-25 11:10:51.000000000 -0600
@@ -13,6 +13,7 @@
#include <math.h>
+#include <cstdlib>
#include "signal_op.h"
#include "AFLIB/aflibConverter.h"
#include "error_op.h"
@@ -0,0 +1,11 @@
diff -ru 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 20:05:42.000000000 +0200
+++ libofa-0.9.3//examples/protocol.cpp 2011-07-22 19:02:30.687109297 +0200
@@ -12,7 +12,6 @@
#include <map>
#include <expat.h>
#include <curl/curl.h>
-#include <curl/types.h>
#include <curl/easy.h>
using namespace std;
@@ -0,0 +1,22 @@
diff -up libofa-0.9.3/examples/uselame.cpp.gcc47 libofa-0.9.3/examples/uselame.cpp
--- libofa-0.9.3/examples/uselame.cpp.gcc47 2012-01-14 09:35:24.343146853 -0600
+++ libofa-0.9.3/examples/uselame.cpp 2012-01-14 09:35:49.956826634 -0600
@@ -12,6 +12,7 @@
#else
#include <sys/wait.h>
#endif
+#include <unistd.h>
AudioData *loadWaveFile(char *file);
diff -up libofa-0.9.3/examples/wavefile.cpp.gcc47 libofa-0.9.3/examples/wavefile.cpp
--- libofa-0.9.3/examples/wavefile.cpp.gcc47 2012-01-14 09:35:24.344146841 -0600
+++ libofa-0.9.3/examples/wavefile.cpp 2012-01-14 16:00:54.414981160 -0600
@@ -11,6 +11,7 @@
#include "io.h"
#endif
#include <fcntl.h>
+#include <unistd.h>
static bool readBytes(int fd, unsigned char *buf, int size) {
int ct = 0;
@@ -0,0 +1,12 @@
--- libofa-0.9.3/libofa.pc.in.pkgconfig 2006-05-10 12:58:51.000000000 -0500
+++ libofa-0.9.3/libofa.pc.in 2006-09-14 08:36:12.000000000 -0500
@@ -7,6 +7,6 @@
Description: The Open Fingerprint Architecture Library
URL: http://www.musicdns.org/
Version: @VERSION@
-Requires: fftw3
-Libs: -L${libdir} -lofa -lexpat -lm
+Libs: -L${libdir} -lofa
+Libs.private: -lfftw -lm
Cflags: -I${includedir}