From 5dd5089bd38ccd42596d5bfc315b99ab259da362 Mon Sep 17 00:00:00 2001 From: Leon Zhang Date: Sun, 8 Apr 2012 12:05:40 +0900 Subject: 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 --- Library/Formula/cmus.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Library/Formula') 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 -- cgit v1.2.3