diff options
| author | Balint Reczey | 2014-05-29 18:24:17 +0700 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-04 12:23:58 +0100 |
| commit | 142d06b3411049c8ddb47e3500e800f4795dfba1 (patch) | |
| tree | 8ba3110cd155d80ba0fb74126a19688278f2e060 /Library/Formula | |
| parent | f707650f24e9c353d74bc2a2941dc0ab94f49fdb (diff) | |
| download | homebrew-142d06b3411049c8ddb47e3500e800f4795dfba1.tar.bz2 | |
wireshark: add optional GTK+3 support.
Keep providing GTK+ (2) or Qt as an option. Also drop x11 dependency,
gtk+ already depends on it.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/wireshark.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Library/Formula/wireshark.rb b/Library/Formula/wireshark.rb index ec0e10ae7..a00342692 100644 --- a/Library/Formula/wireshark.rb +++ b/Library/Formula/wireshark.rb @@ -26,7 +26,7 @@ class Wireshark < Formula sha1 '7e1c6b107c178016d51c9061ef3f40efbc47a040' end - option 'with-qt', 'Use QT for GUI instead of GTK+' + option 'with-qt', 'Use QT for GUI instead of GTK+3' option 'with-headers', 'Install Wireshark library headers for plug-in developemnt' depends_on 'pkg-config' => :build @@ -42,8 +42,8 @@ class Wireshark < Formula depends_on 'pcre' => :optional depends_on 'portaudio' => :optional depends_on 'qt' => :optional + depends_on "gtk+3" => :optional depends_on "gtk+" => :optional - depends_on :x11 if build.with? "gtk+" def install args = ["--disable-dependency-tracking", @@ -51,9 +51,11 @@ class Wireshark < Formula "--with-gnutls", "--with-ssl"] - args << "--disable-wireshark" if build.without?("gtk+") && build.without?("qt") - args << "--disable-gtktest" if build.without? "gtk+" + args << "--disable-wireshark" if build.without?("gtk+3") && build.without?("qt") && build.without?("gtk+") + args << "--disable-gtktest" if build.without?("gtk+3") && build.without?("gtk+") args << "--with-qt" if build.with? "qt" + args << "--with-gtk3" if build.with? "gtk+3" + args << "--with-gtk2" if build.with? "gtk+" if build.head? args << "--disable-warnings-as-errors" |
