aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/curl.rb14
1 files changed, 9 insertions, 5 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb
index fd0247255..fff8247d8 100644
--- a/Library/Formula/curl.rb
+++ b/Library/Formula/curl.rb
@@ -8,18 +8,22 @@ class Curl < Formula
keg_only :provided_by_osx,
"The libcurl provided by Leopard is too old for CouchDB to use."
+ option 'with-ssh', 'Build with scp and sftp support'
+ option 'with-libmetalink', 'Build with Metalink support'
+
depends_on 'pkg-config' => :build
depends_on 'libssh2' if build.include? 'with-ssh'
-
- option 'with-ssh', 'Build with scp and sftp support'
+ depends_on 'libmetalink' if build.include? 'with-libmetalink'
def install
args = %W[
- --disable-debug
- --disable-dependency-tracking
- --prefix=#{prefix}]
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ ]
args << "--with-libssh2" if build.include? 'with-ssh'
+ args << "--with-libmetalink" if build.include? 'with-libmetalink'
system "./configure", *args
system "make install"