diff options
Diffstat (limited to 'media-libs/libofa/files')
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch | 11 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch | 35 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch | 10 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch | 22 | ||||
-rw-r--r-- | media-libs/libofa/files/libofa-0.9.3-gcc-4.patch | 39 |
5 files changed, 117 insertions, 0 deletions
diff --git a/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch b/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch new file mode 100644 index 000000000000..d23351860ddd --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-curl-7.21.patch @@ -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; diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch new file mode 100644 index 000000000000..f68f42bfb129 --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.3.patch @@ -0,0 +1,35 @@ +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 @@ + + #include "protocol.h" + ++#include <string.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 +@@ -8,6 +8,7 @@ + -------------------------------------------------------------------*/ + #include <stdio.h> + #include <stdlib.h> ++#include <cstring> + #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 +@@ -12,6 +12,7 @@ + // DATE CREATED: 1/12/06 + + ++#include <cstdlib> + #include <math.h> + #include "signal_op.h" + #include "AFLIB/aflibConverter.h" diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch new file mode 100644 index 000000000000..25cab143d23f --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.4.patch @@ -0,0 +1,10 @@ +--- orig-libofa-0.9.3/examples/example.cpp 2009-04-11 12:22:55.397455430 +0200 ++++ libofa-0.9.3/examples/example.cpp 2009-04-11 12:25:21.466456955 +0200 +@@ -9,6 +9,7 @@ + + #include "protocol.h" + ++#include <stdio.h> + #include <string.h> + + AudioData* loadWaveFile(char *file); diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch new file mode 100644 index 000000000000..c5ab098767dd --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.7.patch @@ -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; diff --git a/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch b/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch new file mode 100644 index 000000000000..d1059bafa55f --- /dev/null +++ b/media-libs/libofa/files/libofa-0.9.3-gcc-4.patch @@ -0,0 +1,39 @@ +--- lib/JAMA/tnt_math_utils.h.orig 2006-06-17 01:46:22.000000000 +0300 ++++ lib/JAMA/tnt_math_utils.h 2006-06-17 01:47:02.000000000 +0300 +@@ -20,11 +20,20 @@ + 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
+ using (a * sqrt( 1 + (b/a) * (b/a))), rather than
+ sqrt(a*a + b*b).
+ */
++
+ template <class Real>
+ Real hypot(const Real &a, const Real &b)
+ {
+@@ -56,15 +65,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 */
|