From 4f82075d6176e710a4c6debc822cf7782c3dfa03 Mon Sep 17 00:00:00 2001 From: Jeremy Larkin Date: Thu, 20 Sep 2012 12:50:15 -0400 Subject: curl: add c-ares and openssl options Closes #15023. Signed-off-by: Jack Nagel --- Library/Formula/curl.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Library/Formula') 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" -- cgit v1.2.3