From 2cdc8aaf14a439c64951943e23d95e242995302b Mon Sep 17 00:00:00 2001 From: Michael Klishin Date: Thu, 13 Jun 2013 18:54:25 +0400 Subject: wireshark: add SSL support Closes #20472. Signed-off-by: Adam Vandenberg --- Library/Formula/wireshark.rb | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb index 8a589d14d..62e966a34 100644 --- a/Library/Formula/wireshark.rb +++ b/Library/Formula/wireshark.rb @@ -8,10 +8,9 @@ class Wireshark < Formula option 'with-x', 'Include X11 support' option 'with-qt', 'Use QT for GUI instead of GTK+' + option 'with-ssl', 'Enable SSL support' depends_on 'pkg-config' => :build - depends_on 'gnutls2' => :optional - depends_on 'libgcrypt' => :optional depends_on 'c-ares' => :optional depends_on 'pcre' => :optional depends_on 'qt' => :optional @@ -25,11 +24,21 @@ class Wireshark < Formula depends_on 'gtk+' end + if build.with? 'ssl' + depends_on 'gnutls2' + depends_on 'libgcrypt' + end + def install args = ["--disable-dependency-tracking", "--prefix=#{prefix}"] args << '--with-qt' if build.with? 'qt' + if build.with? 'ssl' + args << '--with-gnutls' + args << '--with-ssl' + end + system "./configure", *args system "make" ENV.deparallelize # parallel install fails -- cgit v1.2.3