diff options
| author | Jeremy Larkin | 2012-09-20 12:50:15 -0400 |
|---|---|---|
| committer | Jack Nagel | 2012-12-23 18:46:02 -0600 |
| commit | 4f82075d6176e710a4c6debc822cf7782c3dfa03 (patch) | |
| tree | 0dec452bfac48e44cfad884280f9f68808536d86 /Library | |
| parent | a1a4c1a1249fef0f6517485809f01f39089598c3 (diff) | |
| download | homebrew-4f82075d6176e710a4c6debc822cf7782c3dfa03.tar.bz2 | |
curl: add c-ares and openssl options
Closes #15023.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -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" |
