diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/curl.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/curl.rb b/Library/Formula/curl.rb index 5c3d156ab..d48dcd054 100644 --- a/Library/Formula/curl.rb +++ b/Library/Formula/curl.rb @@ -10,10 +10,14 @@ class Curl < Formula option 'with-ssh', 'Build with scp and sftp support' option 'with-libmetalink', 'Build with Metalink support' + option 'with-ares', 'Build with C-Ares async DNS support' + option 'with-ssl', 'Build with Homebrew OpenSSL instead of the system version' depends_on 'pkg-config' => :build depends_on 'libssh2' if build.include? 'with-ssh' depends_on 'libmetalink' if build.include? 'with-libmetalink' + depends_on 'c-ares' if build.include? 'with-ares' + depends_on 'openssl' if build.include? 'with-ssl' def install args = %W[ @@ -24,6 +28,8 @@ class Curl < Formula args << "--with-libssh2" if build.include? 'with-ssh' args << "--with-libmetalink" if build.include? 'with-libmetalink' + args << "--enable-ares=#{Formula.factory("c-ares").opt_prefix}" if build.include? 'with-ares' + args << "--with-ssl=#{Formula.factory("openssl").opt_prefix}" if build.include? 'with-ssl' system "./configure", *args system "make install" |
