diff options
| author | Adam Vandenberg | 2011-04-05 09:38:30 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-04-05 10:03:02 -0700 |
| commit | 19b6543f0b76bbb3a19e8966ff798ca00703522f (patch) | |
| tree | 4ce91bbc5045291028cfd78a6653bc0601e0ae34 /Library/Formula | |
| parent | 7e7d6edb31ef8b23608fa533edfba48d668e9a8e (diff) | |
| download | homebrew-19b6543f0b76bbb3a19e8966ff798ca00703522f.tar.bz2 | |
portaudio: use MacPort patches
This fixes issues when compiling against newer versions of the OS X SDK.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/portaudio.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/portaudio.rb b/Library/Formula/portaudio.rb index 4cc4d4e93..9f31207f3 100644 --- a/Library/Formula/portaudio.rb +++ b/Library/Formula/portaudio.rb @@ -9,13 +9,17 @@ class Portaudio < Formula fails_with_llvm + # Use the MacPort patches that fix compiling against newer OS X SDKs + def patches + {:p0 => [ + "https://trac.macports.org/export/77586/trunk/dports/audio/portaudio/files/patch-configure", + "https://trac.macports.org/export/77586/trunk/dports/audio/portaudio/files/patch-src__hostapi__coreaudio__pa_mac_core.c", + "https://trac.macports.org/export/77586/trunk/dports/audio/portaudio/files/patch-src__common__pa_types.h" + ]} + end + def install system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" - - # remove arch flags else we get errors like: - # lipo: can't figure out the architecture type - inreplace 'Makefile', /-arch (x64_64|ppc64|i386|ppc)/, '' - system "make install" # Need 'pa_mac_core.h' to compile PyAudio |
