aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMichael Klishin2013-06-13 18:54:25 +0400
committerAdam Vandenberg2013-06-13 09:27:46 -0700
commit2cdc8aaf14a439c64951943e23d95e242995302b (patch)
tree5acf1f471b4076d2a55799b8af583d93bd61f64a /Library
parentd18980b0bbc2cd2fa2aa5e4fd0b5a85409c6a40d (diff)
downloadhomebrew-2cdc8aaf14a439c64951943e23d95e242995302b.tar.bz2
wireshark: add SSL support
Closes #20472. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-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