diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/cmus.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Formula/cmus.rb b/Library/Formula/cmus.rb index 69a6f6459..05acc3251 100644 --- a/Library/Formula/cmus.rb +++ b/Library/Formula/cmus.rb @@ -20,6 +20,13 @@ class Cmus < Formula skip_clean 'bin/cmus-remote' def install + # We add this to CPPFLAGS and LDFLAGS in ENV, but cmus doesn't + # pick up on that. Adding this patch because I am too lazy to + # send a patch upstream to respect CPPFLAGS - @adamv + unless HOMEBREW_PREFIX.to_s == '/usr/local' + ENV.append 'CFLAGS', "-isystem #{HOMEBREW_PREFIX}/include -L#{HOMEBREW_PREFIX}/lib" + end + system "./configure", "prefix=#{prefix}", "mandir=#{man}" system "make install" end |
