package/wireshark: properly guard sub-options
authorYann E. MORIN <yann.morin.1998@free.fr>
Thu, 20 Oct 2016 19:56:41 +0000 (21:56 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 20 Oct 2016 20:02:22 +0000 (22:02 +0200)
... otherwise we would end up forcefully enabling the linguist tool even
when wireshark would not be enabled.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/wireshark/Config.in

index b5a874b640d58bff20dc187eef6c9ac4bf040851..c5b5c3e3ae92adbc8b642d3df87d616fcbfb38d8 100644 (file)
@@ -10,6 +10,8 @@ config BR2_PACKAGE_WIRESHARK
 
          https://www.wireshark.org
 
+if BR2_PACKAGE_WIRESHARK
+
 config BR2_PACKAGE_WIRESHARK_QT
        bool
        default y
@@ -23,6 +25,8 @@ config BR2_PACKAGE_WIRESHARK_GUI
        default y if BR2_PACKAGE_LIBGTK3
        default y if BR2_PACKAGE_WIRESHARK_QT
 
+endif # BR2_PACKAGE_WIRESHARK
+
 comment "wireshark needs a toolchain w/ wchar, threads"
        depends on BR2_USE_MMU
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS