Skip to content

Commit

Permalink
make openssl optional
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
augmentedfourth authored and MikeMcQuaid committed Jan 21, 2014
1 parent b7ddd69 commit 3fd96d3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Library/Formula/irssi.rb
Expand Up @@ -5,12 +5,12 @@ class Irssi < Formula
url 'http://irssi.org/files/irssi-0.8.15.tar.bz2'
sha1 'b79ce8c2c98a76b004f63706e7868cd363000d89'

option "without-perl", "Build without perl support."
option "without-perl", "Build without perl support"

depends_on :clt # See https://github.com/Homebrew/homebrew/issues/20952
depends_on 'pkg-config' => :build
depends_on 'glib'
depends_on 'openssl'
depends_on 'openssl' => :optional

devel do
url 'http://irssi.org/files/irssi-0.8.16-rc1.tar.gz'
Expand All @@ -24,7 +24,6 @@ def install
args =%W[
--prefix=#{prefix}
--sysconfdir=#{etc}
--enable-ssl
--with-bot
--with-proxy
--enable-ipv6
Expand All @@ -38,6 +37,10 @@ def install
args << "--with-perl=no"
end

if build.with? "openssl"
args << "--enable-ssl"
end

system "./configure", *args

# 'make' and 'make install' must be done separately on some systems
Expand Down

0 comments on commit 3fd96d3

Please sign in to comment.