From fe51fc4cc585a0a64b87f6e2439f763542bb85ef Mon Sep 17 00:00:00 2001 From: Nibbles 2bits Date: Sun, 11 Mar 2012 20:58:51 -0700 Subject: libsamplerate: fix missing include Libsamplerate fix to read . Signed-off-by: Adam Vandenberg --- Library/Formula/libsamplerate.rb | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Library/Formula') diff --git a/Library/Formula/libsamplerate.rb b/Library/Formula/libsamplerate.rb index 208cb4925..3b46da023 100644 --- a/Library/Formula/libsamplerate.rb +++ b/Library/Formula/libsamplerate.rb @@ -9,8 +9,27 @@ class Libsamplerate < Formula depends_on 'libsndfile' => :optional depends_on 'fftw' => :optional + # configure adds `/Developer/Headers/FlatCarbon` to the include, but this is + # very deprecated. Correct the use of Carbon.h to the non-flat location. + # See: https://github.com/mxcl/homebrew/pull/10875 + def patches; DATA; end + def install - system "./configure", "--disable-debug", "--prefix=#{prefix}" + system "./configure", "--disable-dependency-tracking", + "--prefix=#{prefix}" system "make install" end end + +__END__ +--- a/examples/audio_out.c 2011-07-12 16:57:31.000000000 -0700 ++++ b/examples/audio_out.c 2012-03-11 20:48:57.000000000 -0700 +@@ -168,7 +168,7 @@ + + #if (defined (__MACH__) && defined (__APPLE__)) /* MacOSX */ + +-#include ++#include + #include + + #define MACOSX_MAGIC MAKE_MAGIC ('M', 'a', 'c', ' ', 'O', 'S', ' ', 'X') -- cgit v1.2.3