summaryrefslogtreecommitdiffstats
path: root/audio/rubberband
diff options
context:
space:
mode:
author Matteo Bernardini <ponce@slackbuilds.org>2012-09-12 18:13:29 +0200
committer Matteo Bernardini <ponce@slackbuilds.org>2012-09-12 18:14:05 +0200
commit19a050739649632cea5414243bbac7583350d559 (patch)
tree03127e37de808ed05587106538c5937c603b81a4 /audio/rubberband
parentb87988a320f49f7017532fd996422f96da73d71c (diff)
downloadslackbuilds-19a050739649632cea5414243bbac7583350d559.tar.gz
slackbuilds-19a050739649632cea5414243bbac7583350d559.tar.xz
audio/rubberband: Added a patch for gcc-4.7.x.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/rubberband')
-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 \