wireshark: add SSL support
Closes Homebrew/homebrew#20472. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
bf1cc0d4b9
commit
3569d3317e
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue