2010-02-02 12:16:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class FluidSynth < Formula
|
2012-03-17 18:45:48 +00:00
|
|
|
homepage 'http://www.fluidsynth.org'
|
2012-02-15 07:16:25 +00:00
|
|
|
url 'http://sourceforge.net/projects/fluidsynth/files/fluidsynth-1.1.5/fluidsynth-1.1.5.tar.gz'
|
|
|
|
sha1 '2f98696ca0a6757684f0a881bf92b3149536fdf2'
|
2010-02-02 12:16:01 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-02-15 07:16:25 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-02-02 12:16:01 +00:00
|
|
|
depends_on 'glib'
|
|
|
|
depends_on 'libsndfile' => :optional
|
|
|
|
|
2012-03-17 18:45:48 +00:00
|
|
|
# Fixes missing CoreAudio include on Lion.
|
|
|
|
# Patch has been accepted upstream.
|
|
|
|
# https://sourceforge.net/apps/trac/fluidsynth/ticket/105
|
|
|
|
def patches; DATA; end
|
2012-02-15 07:16:25 +00:00
|
|
|
|
2010-02-02 12:16:01 +00:00
|
|
|
def install
|
2012-02-25 05:47:09 +00:00
|
|
|
mkdir 'build' do
|
|
|
|
system "cmake #{std_cmake_parameters} -Denable-framework=OFF -DLIB_SUFFIX= .."
|
|
|
|
system "make install"
|
|
|
|
end
|
2010-02-02 12:16:01 +00:00
|
|
|
end
|
|
|
|
end
|
2012-02-15 07:16:25 +00:00
|
|
|
|
|
|
|
__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>
|
|
|
|
|
|
|
|
/*
|