Skip to content

Commit

Permalink
wget: use Homebrew's openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Jan 22, 2014
1 parent f29f80f commit ccf03bd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Formula/wget.rb
Expand Up @@ -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"

Expand Down

0 comments on commit ccf03bd

Please sign in to comment.