aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorNibbles 2bits2012-02-14 23:16:25 -0800
committerJack Nagel2012-02-24 23:08:18 -0600
commit79bb07328b2533afd37e4b5744ee22949d307abb (patch)
tree8bcf351ee0f9bc97266c44c855a3fdc30114fabc /Library
parent540093769b6ff4e92580674dd2c425b478ab16fc (diff)
downloadhomebrew-79bb07328b2533afd37e4b5744ee22949d307abb.tar.bz2
fluid-synth 1.1.5
- Upgrade fluid-synth to 1.1.5. - Switch to cmake build. Docs say configure is deprecated. - Add a patch to fix a missing CoreAudio header on Lion. - Disable the framework build. - Remove lib suffix to avoid lib64. - Compiles on Lion 10.7.3 and SL 10.6.8 using all five compilers. Closes #10197. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fluid-synth.rb27
1 files changed, 24 insertions, 3 deletions
diff --git a/Library/Formula/fluid-synth.rb b/Library/Formula/fluid-synth.rb
index 6fda2b511..6ef904bc3 100644
--- a/Library/Formula/fluid-synth.rb
+++ b/Library/Formula/fluid-synth.rb
@@ -1,16 +1,37 @@
require 'formula'
class FluidSynth < Formula
- url 'http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.3/fluidsynth-1.1.3.tar.gz'
homepage 'http://www.fluidsynth.org/'
- md5 '0d3e3cc770b4da413010dfb7dfdce9c8'
+ url 'http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.5/fluidsynth-1.1.5.tar.gz'
+ sha1 '2f98696ca0a6757684f0a881bf92b3149536fdf2'
depends_on 'pkg-config' => :build
+ depends_on 'cmake' => :build
depends_on 'glib'
depends_on 'libsndfile' => :optional
+ def patches
+ # Fixes missing CoreAudio include on Lion. Here is the upstream report:
+ # https://sourceforge.net/apps/trac/fluidsynth/ticket/105
+ DATA
+ end
+
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ Dir.mkdir 'macbuild'
+ Dir.chdir 'macbuild'
+ system "cmake #{std_cmake_parameters} -Denable-framework=OFF -DLIB_SUFFIX= .."
system "make install"
end
end
+
+__END__
+--- a/src/drivers/fluid_coreaudio.c 2011-09-04 00:38:58.000000000 -0700
++++ b/src/drivers/fluid_coreaudio.c 2012-02-14 21:54:57.000000000 -0800
+@@ -35,6 +35,7 @@
+ #if COREAUDIO_SUPPORT
+ #include <CoreServices/CoreServices.h>
+ #include <CoreAudio/CoreAudioTypes.h>
++#include <CoreAudio/AudioHardware.h>
+ #include <AudioUnit/AudioUnit.h>
+
+ /*