aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/rtorrent.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/rtorrent.rb b/Library/Formula/rtorrent.rb
index 6a9badb47..f5daca228 100644
--- a/Library/Formula/rtorrent.rb
+++ b/Library/Formula/rtorrent.rb
@@ -8,9 +8,12 @@ class Rtorrent <Formula
depends_on 'pkg-config'
depends_on 'libsigc++'
depends_on 'libtorrent'
+ depends_on 'xmlrpc-c' => :optional
def install
- system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
+ args = ["--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}"]
+ args << "--with-xmlrpc-c" if Formula.factory("xmlrpc-c").installed?
+ system "./configure", *args
system "make"
system "make install"
end