wget: use Homebrew's openssl
This commit is contained in:
parent
f29f80f3fc
commit
ccf03bd780
1 changed files with 9 additions and 4 deletions
|
@ -21,14 +21,19 @@ class Wget < Formula
|
|||
option "enable-iri", "Enable iri support"
|
||||
option "enable-debug", "Build with debug support"
|
||||
|
||||
depends_on "openssl" if MacOS.version <= :leopard
|
||||
depends_on "openssl"
|
||||
depends_on "libidn" if build.include? "enable-iri"
|
||||
|
||||
def install
|
||||
system "./bootstrap" if build.head?
|
||||
args = ["--prefix=#{prefix}",
|
||||
"--sysconfdir=#{etc}",
|
||||
"--with-ssl=openssl"]
|
||||
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--sysconfdir=#{etc}
|
||||
--with-ssl=openssl
|
||||
--with-libssl-prefix=#{Formula.factory("openssl").opt_prefix}
|
||||
]
|
||||
|
||||
args << "--disable-debug" unless build.include? "enable-debug"
|
||||
args << "--disable-iri" unless build.include? "enable-iri"
|
||||
|
||||
|
|
Loading…
Reference in a new issue