diff options
| author | Leon Zhang | 2012-04-08 12:05:40 +0900 |
|---|---|---|
| committer | Adam Vandenberg | 2012-04-08 13:34:16 -0700 |
| commit | 5dd5089bd38ccd42596d5bfc315b99ab259da362 (patch) | |
| tree | 29e91be430d37dc2948426f34822591b5d4fca17 /Library | |
| parent | 30813c8415e6c39e5e6e0d4c9fac7012d6b9fa20 (diff) | |
| download | homebrew-5dd5089bd38ccd42596d5bfc315b99ab259da362.tar.bz2 | |
cmus: add -isystem to CFLAGS for non-/usr/local installs
To satisfy configure script to check "mp4v2/mp4v2.h", add -isystem to CFLAGS
Closes #11513.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -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 |
