curl: add c-ares and openssl options

Closes Homebrew/homebrew#15023.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Jeremy Larkin 2012-09-20 12:50:15 -04:00 committed by Jack Nagel
parent 6ba16a526b
commit 4bd5110937
1 changed files with 6 additions and 0 deletions

View File

@ -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"