Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated curl formula c-ares and OpenSSL options #15023

Closed
wants to merge 1 commit into from

2 participants

@kalamay

Added options for c-ares (--with-ares) and OpenSSL (--with-ssl) when
building the curl formula. The c-ares option builds curl with
asynchronous DNS resolution. The OpenSSL option will build curl using
the Homebrew version of OpenSSL instead of the system OpenSSL.

Jeremy Larkin Updated curl formula c-ares and OpenSSL options
Added options for c-ares (--with-ares) and OpenSSL (--with-ssl) when
building the curl formula. The c-ares option builds curl with
asynchronous DNS resolution. The OpenSSL option will build curl using
the Homebrew version of OpenSSL instead of the system OpenSSL.
208e0ec
@jacknagel jacknagel closed this pull request from a commit
Jeremy Larkin curl: add c-ares and openssl options
Closes #15023.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
4f82075
@jacknagel jacknagel closed this in 4f82075
@gwydirsam gwydirsam referenced this pull request from a commit
Jeremy Larkin curl: add c-ares and openssl options
Closes #15023.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
e5a48ae
@yourabi yourabi referenced this pull request from a commit
Jeremy Larkin curl: add c-ares and openssl options
Closes #15023.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
566af91
@guyzmo guyzmo referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@cooljeanius cooljeanius referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@rajeeja rajeeja referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 20, 2012
  1. Updated curl formula c-ares and OpenSSL options

    Jeremy Larkin authored
    Added options for c-ares (--with-ares) and OpenSSL (--with-ssl) when
    building the curl formula. The c-ares option builds curl with
    asynchronous DNS resolution. The OpenSSL option will build curl using
    the Homebrew version of OpenSSL instead of the system OpenSSL.
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 0 deletions.
  1. +6 −0 Library/Formula/curl.rb
View
6 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 OpenSLL 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 @@ def install
args << "--with-libssh2" if build.include? 'with-ssh'
args << "--with-libmetalink" if build.include? 'with-libmetalink'
+ args << "--enable-ares=#{`brew --prefix c-ares`}" if build.include? 'with-ares'
+ args << "--with-ssl=#{`brew --prefix openssl`}" if build.include? 'with-ssl'
system "./configure", *args
system "make install"
Something went wrong with that request. Please try again.