homebrew-core/Formula/libsamplerate.rb

36 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
2011-03-10 05:11:03 +00:00
class Libsamplerate < Formula
homepage 'http://www.mega-nerd.com/SRC'
url 'http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz'
md5 '1c7fb25191b4e6e3628d198a66a84f47'
2010-10-21 03:25:21 +00:00
depends_on 'pkg-config' => :build
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-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
2011-03-10 05:11:03 +00:00
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')