Fix so that rtorrent builds on 10.5
libcurl.pc is broken on 10.5 (see <http://libtorrent.rakshasa.no/ticket/1117>) and this is a workaround for that. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
3fdf413611
commit
0c5c2111a3
|
@ -22,6 +22,11 @@ class Rtorrent <Formula
|
|||
|
||||
args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
|
||||
args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
|
||||
if MACOS_VERSION == 10.5
|
||||
inreplace 'configure' do |s|
|
||||
s.gsub! ' pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" 2>/dev/null`', ' pkg_cv_libcurl_LIBS=`$PKG_CONFIG --libs "libcurl >= 7.15.4" | sed -e "s/-arch [^-]*/-arch $(uname -m) /" 2>/dev/null`'
|
||||
end
|
||||
end
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make install"
|
||||
|
|
Loading…
Reference in New Issue