libsamplerate: fix missing include
Libsamplerate fix <Carbon.h> to read <Carbon/Carbon.h>. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
f1110febe6
commit
83ac401ab4
1 changed files with 20 additions and 1 deletions
|
@ -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 <Carbon.h>
|
||||
+#include <Carbon/Carbon.h>
|
||||
#include <CoreAudio/AudioHardware.h>
|
||||
|
||||
#define MACOSX_MAGIC MAKE_MAGIC ('M', 'a', 'c', ' ', 'O', 'S', ' ', 'X')
|
||||
|
|
Loading…
Reference in a new issue