aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/curl.rb
diff options
context:
space:
mode:
authorJeremy Larkin2012-09-20 12:50:15 -0400
committerJack Nagel2012-12-23 18:46:02 -0600
commit4f82075d6176e710a4c6debc822cf7782c3dfa03 (patch)
tree0dec452bfac48e44cfad884280f9f68808536d86 /Library/Formula/curl.rb
parenta1a4c1a1249fef0f6517485809f01f39089598c3 (diff)
downloadhomebrew-4f82075d6176e710a4c6debc822cf7782c3dfa03.tar.bz2
curl: add c-ares and openssl options
Closes #15023. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/curl.rb')
-rw-r--r--Library/Formula/curl.rb6
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"