aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/wireshark.rb13
1 files changed, 11 insertions, 2 deletions
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