homebrew-core/Formula/libsndfile.rb
Ryan McKern 4d6a0e1f01 libsndfile: patch to fix build with Xcode 4.3
Closes Homebrew/homebrew#10405.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-02-24 23:27:50 -06:00

38 lines
1 KiB
Ruby

require 'formula'
class Libsndfile < Formula
homepage 'http://www.mega-nerd.com/libsndfile/'
url 'http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.25.tar.gz'
md5 'e2b7bb637e01022c7d20f95f9c3990a2'
depends_on 'pkg-config' => :build
def options
[["--universal", "Build a universal binary."]]
end
def patches
# libsndfile doesn't find Carbon.h using XCode 4.3:
# fixed upstream: https://github.com/erikd/libsndfile/commit/d04e1de82ae0af48fd09d5cb09bf21b4ca8d513c
DATA
end
def install
ENV.universal_binary if ARGV.build_universal?
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
end
__END__
--- a/programs/sndfile-play.c 2011-03-27 22:15:31.000000000 -0700
+++ b/programs/sndfile-play.c 2012-02-24 20:02:06.000000000 -0800
@@ -58,7 +58,6 @@
#include <sys/soundcard.h>
#elif (defined (__MACH__) && defined (__APPLE__))
- #include <Carbon.h>
#include <CoreAudio/AudioHardware.h>
#elif defined (HAVE_SNDIO_H)