summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/rubberband/gcc47.patch11
-rw-r--r--audio/rubberband/rubberband.SlackBuild5
2 files changed, 15 insertions, 1 deletions
diff --git a/audio/rubberband/gcc47.patch b/audio/rubberband/gcc47.patch
new file mode 100644
index 0000000000..8109cc6f01
--- /dev/null
+++ b/audio/rubberband/gcc47.patch
@@ -0,0 +1,11 @@
+diff -Naur rubberband-1.6.0.orig/rubberband/RubberBandStretcher.h rubberband-1.6.0/rubberband/RubberBandStretcher.h
+--- rubberband-1.6.0.orig/rubberband/RubberBandStretcher.h 2011-03-19 16:01:07.000000000 +0100
++++ rubberband-1.6.0/rubberband/RubberBandStretcher.h 2012-09-12 17:58:27.260000741 +0200
+@@ -19,6 +19,7 @@
+ #define RUBBERBAND_API_MAJOR_VERSION 2
+ #define RUBBERBAND_API_MINOR_VERSION 4
+
++#include <unistd.h>
+ #include <vector>
+ #include <map>
+
diff --git a/audio/rubberband/rubberband.SlackBuild b/audio/rubberband/rubberband.SlackBuild
index c96b138e56..0e2e17c67e 100644
--- a/audio/rubberband/rubberband.SlackBuild
+++ b/audio/rubberband/rubberband.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=rubberband
VERSION=${VERSION:-1.6.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -54,6 +54,9 @@ find . \
# Fixup libdir on x86_64
[ "$ARCH" = "x86_64" ] && patch -p1 < $CWD/libdir_x86_64.diff
+# Patch for gcc-4.7.x
+patch -p1 < $CWD/gcc47.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \