rabbitmq-server: security bump to version 3.6.6
[buildroot-gz.git] / package / wireshark / wireshark.mk
blob07a3044bfb2107d68463f263138b1c299ea3401b
1 ################################################################################
3 # wireshark
5 ################################################################################
7 WIRESHARK_VERSION = 2.2.3
8 WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.bz2
9 WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
10 WIRESHARK_LICENSE = wireshark license
11 WIRESHARK_LICENSE_FILES = COPYING
12 WIRESHARK_DEPENDENCIES = host-pkgconf libpcap libglib2
13 WIRESHARK_CONF_ENV = \
14 PCAP_CONFIG=$(STAGING_DIR)/usr/bin/pcap-config
16 # patch touching configure.ac
17 WIRESHARK_AUTORECONF = YES
19 # wireshark adds -I$includedir to CFLAGS, causing host/target headers mixup.
20 # Work around it by pointing includedir at staging
21 WIRESHARK_CONF_OPTS = \
22 --without-krb5 \
23 --enable-static=no \
24 --with-libsmi=no \
25 --with-lua=no \
26 --with-pcap=$(STAGING_DIR)/usr \
27 --includedir=$(STAGING_DIR)/usr/include
29 # wireshark GUI options
30 ifeq ($(BR2_PACKAGE_LIBGTK3),y)
31 WIRESHARK_CONF_OPTS += --with-gtk=3
32 WIRESHARK_DEPENDENCIES += libgtk3
33 else ifeq ($(BR2_PACKAGE_LIBGTK2),y)
34 WIRESHARK_CONF_OPTS += --with-gtk=2
35 WIRESHARK_DEPENDENCIES += libgtk2
36 else
37 WIRESHARK_CONF_OPTS += --with-gtk=no
38 endif
40 # Qt4 needs accessibility, we don't support it
41 ifeq ($(BR2_PACKAGE_WIRESHARK_QT),y)
42 WIRESHARK_CONF_OPTS += --with-qt=5
43 WIRESHARK_DEPENDENCIES += qt5base qt5tools
44 WIRESHARK_CONF_ENV += ac_cv_path_QTCHOOSER=""
45 # Seems it expects wrappers and passes a -qt=X parameter for version
46 WIRESHARK_MAKE_OPTS += \
47 MOC="$(HOST_DIR)/usr/bin/moc" \
48 RCC="$(HOST_DIR)/usr/bin/rcc" \
49 UIC="$(HOST_DIR)/usr/bin/uic"
50 else
51 WIRESHARK_CONF_OPTS += --with-qt=no
52 endif
54 # No GUI at all
55 ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),)
56 WIRESHARK_CONF_OPTS += --disable-wireshark
57 endif
59 ifeq ($(BR2_PACKAGE_C_ARES),y)
60 WIRESHARK_CONF_OPTS += --with-c-ares=$(STAGING_DIR)/usr
61 WIRESHARK_DEPENDENCIES += c-ares
62 else
63 WIRESHARK_CONF_OPTS += --without-c-ares
64 endif
66 ifeq ($(BR2_PACKAGE_GEOIP),y)
67 WIRESHARK_CONF_OPTS += --with-geoip=$(STAGING_DIR)/usr
68 WIRESHARK_DEPENDENCIES += geoip
69 else
70 WIRESHARK_CONF_OPTS += --without-geoip
71 endif
73 ifeq ($(BR2_PACKAGE_GNUTLS),y)
74 WIRESHARK_CONF_OPTS += --with-gnutls=yes
75 WIRESHARK_DEPENDENCIES += gnutls
76 else
77 WIRESHARK_CONF_OPTS += --with-gnutls=no
78 endif
80 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
81 WIRESHARK_CONF_ENV += LIBGCRYPT_CONFIG=$(STAGING_DIR)/usr/bin/libgcrypt-config
82 WIRESHARK_CONF_OPTS += --with-gcrypt=yes
83 WIRESHARK_DEPENDENCIES += libgcrypt
84 else
85 WIRESHARK_CONF_OPTS += --with-gcrypt=no
86 endif
88 ifeq ($(BR2_PACKAGE_LIBNL),y)
89 WIRESHARK_CONF_OPTS += --with-libnl
90 WIRESHARK_DEPENDENCIES += libnl
91 else
92 WIRESHARK_CONF_OPTS += --without-libnl
93 endif
95 ifeq ($(BR2_PACKAGE_SBC),y)
96 WIRESHARK_CONF_OPTS += --with-sbc=yes
97 WIRESHARK_DEPENDENCIES += sbc
98 else
99 WIRESHARK_CONF_OPTS += --with-sbc=no
100 endif
102 define WIRESHARK_REMOVE_DOCS
103 find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -print0 \
104 -o -name '*.html' -print0 | xargs -0 rm -f
105 endef
107 WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS
109 $(eval $(autotools-package))