curl: remove references to pre-Mavericks.
This commit is contained in:
parent
dc9e629565
commit
846d2d6b3f
1 changed files with 3 additions and 18 deletions
|
@ -24,35 +24,20 @@ class Curl < Formula
|
|||
keg_only :provided_by_macos
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "openssl" if MacOS.version < :mountain_lion
|
||||
|
||||
def install
|
||||
system "./buildconf" if build.head?
|
||||
|
||||
# Allow to build on Lion, lowering from the upstream setting of 10.8
|
||||
ENV.append_to_cflags "-mmacosx-version-min=10.7" if MacOS.version <= :lion
|
||||
|
||||
args = %W[
|
||||
--disable-debug
|
||||
--disable-dependency-tracking
|
||||
--disable-silent-rules
|
||||
--prefix=#{prefix}
|
||||
--with-darwinssl
|
||||
--without-ca-bundle
|
||||
--without-ca-path
|
||||
]
|
||||
|
||||
# cURL has a new firm desire to find ssl with PKG_CONFIG_PATH instead of using
|
||||
# "--with-ssl" any more. "when possible, set the PKG_CONFIG_PATH environment
|
||||
# variable instead of using this option". Multi-SSL choice breaks w/o using it.
|
||||
if MacOS.version < :mountain_lion
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["openssl"].opt_lib}/pkgconfig"
|
||||
args << "--with-ssl=#{Formula["openssl"].opt_prefix}"
|
||||
args << "--with-ca-bundle=#{etc}/openssl/cert.pem"
|
||||
args << "--with-ca-path=#{etc}/openssl/certs"
|
||||
else
|
||||
args << "--with-darwinssl"
|
||||
args << "--without-ca-bundle"
|
||||
args << "--without-ca-path"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
system "make", "install", "-C", "scripts"
|
||||
|
|
Loading…
Reference in a new issue