rtmpdump: formula cleanup

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-01-25 17:40:42 -06:00
parent bb0c0f3353
commit 7db0a4a69f

View file

@ -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