diff options
| author | Adam Vandenberg | 2011-03-12 22:46:47 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 22:46:47 -0800 |
| commit | 4f7a0cd5236e54d37a4dc955e62d2605e51b0359 (patch) | |
| tree | e4bd1e7f616de62a1f9e64790fac3e112951439d /Library | |
| parent | db306dedf79ef728841280e04e9d135f0bcc11d9 (diff) | |
| download | homebrew-4f7a0cd5236e54d37a4dc955e62d2605e51b0359.tar.bz2 | |
rtmpdump: normalize CC and LD
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/rtmpdump.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Formula/rtmpdump.rb b/Library/Formula/rtmpdump.rb index ac6fff909..35ebe0d93 100644 --- a/Library/Formula/rtmpdump.rb +++ b/Library/Formula/rtmpdump.rb @@ -7,15 +7,19 @@ class Rtmpdump < Formula depends_on 'openssl' if MACOS_VERSION < 10.6 - def patches - DATA - end + # 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" end end + __END__ --- rtmpdump-2.3/librtmp/Makefile.orig 2010-07-30 23:05:25.000000000 +0200 +++ rtmpdump-2.3/librtmp/Makefile 2010-07-30 23:08:23.000000000 +0200 |
