diff options
| author | Jin Yi | 2011-07-28 13:06:00 -0700 |
|---|---|---|
| committer | Max Howell | 2011-08-19 16:58:25 +0100 |
| commit | e21e1ae1a172e272ef461c9148908c4c188c83cd (patch) | |
| tree | 74d1a27dd623e8fe13e2c1aeb6915605eccf33c8 /Library/Formula | |
| parent | ce6714a9f9aa37458cdf42d5bee54ccb387d9fe1 (diff) | |
| download | homebrew-e21e1ae1a172e272ef461c9148908c4c188c83cd.tar.bz2 | |
Fix pianobar formula; HEAD and zipball works
Signed-off-by: Max Howell <max@methylblue.com>
I fixed a segfault too, see referenced URL. Also I heavily modified this patch. I tested it all.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pianobar.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Formula/pianobar.rb b/Library/Formula/pianobar.rb index cfe8b23c7..ea5f6b010 100644 --- a/Library/Formula/pianobar.rb +++ b/Library/Formula/pianobar.rb @@ -17,8 +17,14 @@ class Pianobar < Formula fails_with_llvm "Reports of this not compiling on Xcode 4" def install - # Force GCC into c99 mode - ENV.append 'CFLAGS', "-std=c99" + # we discard Homebrew's CFLAGS as Pianobar reportdely doesn't like them + ENV['CFLAGS'] = "-O2 -DNDEBUG " + + # fixes a segfault: https://github.com/PromyLOPh/pianobar/issues/138 + "-D_DARWIN_C_SOURCE " + + # Or it doesn't build at all + "-std=c99 " + + # build if we aren't /usr/local' + "#{ENV["CPPFLAGS"]} #{ENV["LDFLAGS"]}" system "make", "PREFIX=#{prefix}" system "make", "install", "PREFIX=#{prefix}" |
