From 4f7a0cd5236e54d37a4dc955e62d2605e51b0359 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 12 Mar 2011 22:46:47 -0800 Subject: rtmpdump: normalize CC and LD --- Library/Formula/rtmpdump.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Library/Formula/rtmpdump.rb') 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 -- cgit v1.2.3