From 7db0a4a69f06fab345bc9ab722b43864ef81d446 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 25 Jan 2012 17:40:42 -0600 Subject: [PATCH] rtmpdump: formula cleanup Signed-off-by: Jack Nagel --- Formula/rtmpdump.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Formula/rtmpdump.rb b/Formula/rtmpdump.rb index 3362d05037..a0a4e763ed 100644 --- a/Formula/rtmpdump.rb +++ b/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