wget: use Homebrew's openssl

This commit is contained in:
Jack Nagel 2014-01-21 18:33:50 -06:00
parent f29f80f3fc
commit ccf03bd780

View file

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