From b3790ccba30dd7a99ecbca30f7a0f2bfe62ef31a Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sat, 15 Sep 2012 21:32:01 +0200 Subject: audio/calf: Added a patch for gcc-4.7.x. Also small cleanups in the .info file Signed-off-by: Matteo Bernardini --- audio/calf/calf.SlackBuild | 5 ++++- audio/calf/calf.info | 4 ++-- audio/calf/gcc47.patch | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 audio/calf/gcc47.patch (limited to 'audio/calf') diff --git a/audio/calf/calf.SlackBuild b/audio/calf/calf.SlackBuild index 07e426e77c..01e0031c0b 100644 --- a/audio/calf/calf.SlackBuild +++ b/audio/calf/calf.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=calf VERSION=${VERSION:-0.0.18.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -77,6 +77,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix for gcc-4.7.x +patch -p1 < $CWD/gcc47.patch + # Note: The build ignores the provided -O2 in the flags (but the # -march/-mtune -fPIC stuff is used). If you really want to force # it to use -O2 (Slackware default), set FORCE_SLACK_CFLAGS=yes diff --git a/audio/calf/calf.info b/audio/calf/calf.info index 75b9b3df76..cd88930b7a 100644 --- a/audio/calf/calf.info +++ b/audio/calf/calf.info @@ -1,7 +1,7 @@ PRGNAM="calf" VERSION="0.0.18.6" -HOMEPAGE="http://sourceforge.net/projects/project/" -DOWNLOAD="http://downloads.sourceforge.net/project/calf/calf/0.0.18.6/calf-0.0.18.6.tar.gz" +HOMEPAGE="http://sourceforge.net/projects/calf/" +DOWNLOAD="http://downloads.sourceforge.net/calf/calf-0.0.18.6.tar.gz" MD5SUM="780854561dad1cb873041d7a0b98cbcd" DOWNLOAD_x86_64="" MD5SUM_x86_64="" diff --git a/audio/calf/gcc47.patch b/audio/calf/gcc47.patch new file mode 100644 index 0000000000..7328a107ab --- /dev/null +++ b/audio/calf/gcc47.patch @@ -0,0 +1,33 @@ +diff -Naur calf-0.0.18.6.orig/src/calf/benchmark.h calf-0.0.18.6/src/calf/benchmark.h +--- calf-0.0.18.6.orig/src/calf/benchmark.h 2010-08-22 23:25:15.000000000 +0200 ++++ calf-0.0.18.6/src/calf/benchmark.h 2012-09-15 21:25:28.194000789 +0200 +@@ -22,6 +22,7 @@ + #define __CALF_BENCHMAR_H + + #include ++#include + #include + #include + #include "primitives.h" +diff -Naur calf-0.0.18.6.orig/src/osctlnet.cpp calf-0.0.18.6/src/osctlnet.cpp +--- calf-0.0.18.6.orig/src/osctlnet.cpp 2010-08-22 23:25:15.000000000 +0200 ++++ calf-0.0.18.6/src/osctlnet.cpp 2012-09-15 21:21:15.580000799 +0200 +@@ -26,6 +26,7 @@ + #include + #include + #include ++#include + using namespace osctl; + using namespace std; + +diff -Naur calf-0.0.18.6.orig/src/preset.cpp calf-0.0.18.6/src/preset.cpp +--- calf-0.0.18.6.orig/src/preset.cpp 2010-08-22 23:25:15.000000000 +0200 ++++ calf-0.0.18.6/src/preset.cpp 2012-09-15 21:23:23.418997406 +0200 +@@ -22,6 +22,7 @@ + #include + #include + #include ++#include + #include + #include + #include -- cgit v1.2.3