aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-01-25 17:40:42 -0600
committerJack Nagel2012-01-25 17:40:42 -0600
commita30903dfbfd5783b57d1a6e3db4a70e630f73ca4 (patch)
tree0f86f1678cacea0147d8388eceffe13860430b03
parenta2b980b45333f81546da59b492572789fb792f6b (diff)
downloadhomebrew-a30903dfbfd5783b57d1a6e3db4a70e630f73ca4.tar.bz2
rtmpdump: formula cleanup
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
-rw-r--r--Library/Formula/rtmpdump.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/rtmpdump.rb b/Library/Formula/rtmpdump.rb
index 3362d0503..a0a4e763e 100644
--- a/Library/Formula/rtmpdump.rb
+++ b/Library/Formula/rtmpdump.rb
@@ -7,18 +7,20 @@ class Rtmpdump < Formula
depends_on 'openssl' if MacOS.leopard?
- fails_with_llvm if MacOS.lion?
+ fails_with_llvm "Crashes at runtime" if MacOS.lion?
# Use dylib instead of so
def patches; DATA; end
def install
- ENV.j1
- inreplace ["Makefile", "librtmp/Makefile"] do |s|
- s.change_make_var! "CC", ENV['CC']
- s.change_make_var! "LD", ENV['LD']
- end
- system "make", "prefix=#{prefix}", "MANDIR=#{man}", "SYS=posix", "install"
+ ENV.deparallelize
+ system "make", "CC=#{ENV.cc}",
+ "XCFLAGS=#{ENV.cflags}",
+ "XLDFLAGS=#{ENV.ldflags}",
+ "MANDIR=#{man}",
+ "SYS=posix",
+ "prefix=#{prefix}",
+ "install"
end
end