From 1dc9f695929cd53608e2ef54ec867b19fdf74f28 Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Sun, 16 Sep 2012 10:51:03 +0200 Subject: [PATCH] audio/clam_voice2midi: Added a patch to fix underlinking. Exported CFLAGS like required by the scons script Signed-off-by: Matteo Bernardini --- audio/clam_voice2midi/clam_voice2midi.SlackBuild | 10 +++++++--- audio/clam_voice2midi/fix_undelinking.patch | 12 ++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 audio/clam_voice2midi/fix_undelinking.patch diff --git a/audio/clam_voice2midi/clam_voice2midi.SlackBuild b/audio/clam_voice2midi/clam_voice2midi.SlackBuild index 80ca455c17..126f975b02 100644 --- a/audio/clam_voice2midi/clam_voice2midi.SlackBuild +++ b/audio/clam_voice2midi/clam_voice2midi.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=clam_voice2midi VERSION=${VERSION:-0.3.10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} SRCNAM=Voice2MIDI @@ -62,10 +62,14 @@ find . \ # If all else fails, removepkg qt3 and reinstall it afterwards. export QTDIR=$QT4DIR -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ +# This is needed to fix underlinkg +patch -p1 < $CWD/fix_undelinking.patch + +CCFLAGS="$SLKCFLAGS" \ +CPPFLAGS="$SLKCFLAGS" \ scons \ prefix=/usr \ + release=yes \ clam_prefix=/usr scons install prefix=$PKG/usr diff --git a/audio/clam_voice2midi/fix_undelinking.patch b/audio/clam_voice2midi/fix_undelinking.patch new file mode 100644 index 0000000000..3818e0074e --- /dev/null +++ b/audio/clam_voice2midi/fix_undelinking.patch @@ -0,0 +1,12 @@ +diff -Naur Voice2MIDI-0.3.10.orig/SConstruct Voice2MIDI-0.3.10/SConstruct +--- Voice2MIDI-0.3.10.orig/SConstruct 2009-06-29 16:46:18.000000000 +0200 ++++ Voice2MIDI-0.3.10/SConstruct 2012-09-16 09:50:30.637847765 +0200 +@@ -164,6 +164,8 @@ + extralinkFlags = [] + if sys.platform == 'darwin' : + extralinkFlags=['-dynamic','-bind_at_load'] ++if sys.platform == 'linux2' : ++ extralinkFlags=['-lGL'] + + programs = [] + for main in mainSources.items() :