diff options
| author | Ryan McKern | 2012-02-22 11:44:59 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-02-24 23:27:50 -0600 |
| commit | 9c77e1cefce38f2a3001ce398ad0b4dc2f668243 (patch) | |
| tree | eba4f47a0910afac55e1c403e4c5981fb1a7d4f7 /Library/Formula/libsndfile.rb | |
| parent | 79bb07328b2533afd37e4b5744ee22949d307abb (diff) | |
| download | homebrew-9c77e1cefce38f2a3001ce398ad0b4dc2f668243.tar.bz2 | |
libsndfile: patch to fix build with Xcode 4.3
Closes #10405.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/libsndfile.rb')
| -rw-r--r-- | Library/Formula/libsndfile.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/libsndfile.rb b/Library/Formula/libsndfile.rb index 3f551ad2a..7f548f551 100644 --- a/Library/Formula/libsndfile.rb +++ b/Library/Formula/libsndfile.rb @@ -11,6 +11,12 @@ class Libsndfile < Formula [["--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? @@ -18,3 +24,15 @@ class Libsndfile < Formula 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) |
