2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Libsamplerate < Formula
|
2009-12-20 07:04:02 +00:00
|
|
|
homepage 'http://www.mega-nerd.com/SRC'
|
2012-02-07 10:49:34 +00:00
|
|
|
url 'http://www.mega-nerd.com/SRC/libsamplerate-0.1.8.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'e5fe82c4786be2fa33ca6bd4897db4868347fe70'
|
2010-10-21 03:25:21 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'libsndfile' => :optional
|
2012-02-07 10:49:34 +00:00
|
|
|
depends_on 'fftw' => :optional
|
2009-06-04 18:21:19 +00:00
|
|
|
|
2012-03-12 03:58:51 +00:00
|
|
|
# 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
|
|
|
|
|
2009-06-04 18:21:19 +00:00
|
|
|
def install
|
2012-03-12 03:58:51 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-06-04 18:21:19 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2011-03-10 05:11:03 +00:00
|
|
|
end
|
2012-03-12 03:58:51 +00:00
|
|
|
|
|
|
|
__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')
|