1 ################################################################################
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
= \
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
37 WIRESHARK_CONF_OPTS
+= --with-gtk
=no
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"
51 WIRESHARK_CONF_OPTS
+= --with-qt
=no
55 ifeq ($(BR2_PACKAGE_WIRESHARK_GUI
),)
56 WIRESHARK_CONF_OPTS
+= --disable-wireshark
59 ifeq ($(BR2_PACKAGE_C_ARES
),y
)
60 WIRESHARK_CONF_OPTS
+= --with-c-ares
=$(STAGING_DIR
)/usr
61 WIRESHARK_DEPENDENCIES
+= c-ares
63 WIRESHARK_CONF_OPTS
+= --without-c-ares
66 ifeq ($(BR2_PACKAGE_GEOIP
),y
)
67 WIRESHARK_CONF_OPTS
+= --with-geoip
=$(STAGING_DIR
)/usr
68 WIRESHARK_DEPENDENCIES
+= geoip
70 WIRESHARK_CONF_OPTS
+= --without-geoip
73 ifeq ($(BR2_PACKAGE_GNUTLS
),y
)
74 WIRESHARK_CONF_OPTS
+= --with-gnutls
=yes
75 WIRESHARK_DEPENDENCIES
+= gnutls
77 WIRESHARK_CONF_OPTS
+= --with-gnutls
=no
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
85 WIRESHARK_CONF_OPTS
+= --with-gcrypt
=no
88 ifeq ($(BR2_PACKAGE_LIBNL
),y
)
89 WIRESHARK_CONF_OPTS
+= --with-libnl
90 WIRESHARK_DEPENDENCIES
+= libnl
92 WIRESHARK_CONF_OPTS
+= --without-libnl
95 ifeq ($(BR2_PACKAGE_SBC
),y
)
96 WIRESHARK_CONF_OPTS
+= --with-sbc
=yes
97 WIRESHARK_DEPENDENCIES
+= sbc
99 WIRESHARK_CONF_OPTS
+= --with-sbc
=no
102 define WIRESHARK_REMOVE_DOCS
103 find
$(TARGET_DIR
)/usr
/share
/wireshark
-name
'*.txt' -print0 \
104 -o
-name
'*.html' -print0 | xargs
-0 rm -f
107 WIRESHARK_POST_INSTALL_TARGET_HOOKS
+= WIRESHARK_REMOVE_DOCS
109 $(eval
$(autotools-package
))