rtmpdump: formula cleanup
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
bb0c0f3353
commit
7db0a4a69f
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue