- Remove patch (already in version) - Move package to cmake infrastructure - --disables-guides option is not avaiable with cmake - gtk ui is no more available - QT UI now requires: - qt5multimedia and qt5svg at build time - qt5fontconfig, qt5png and udev at runtime - Add host-python3 dependency - Add a hook to build host-lemon - Disable static build (some libraries such as plugins/3.0/codecs/l16mono.so does not support static building) - Disable new sdjournal feature (will be enabled in a follow up patch) Fixes: - http://autobuild.buildroot.org/results/bdbfd72a5da7e02e85159ee62bf56067adbc8931 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
152 lines
3.9 KiB
Makefile
152 lines
3.9 KiB
Makefile
################################################################################
|
|
#
|
|
# wireshark
|
|
#
|
|
################################################################################
|
|
|
|
WIRESHARK_VERSION = 3.0.1
|
|
WIRESHARK_SOURCE = wireshark-$(WIRESHARK_VERSION).tar.xz
|
|
WIRESHARK_SITE = https://www.wireshark.org/download/src/all-versions
|
|
WIRESHARK_LICENSE = wireshark license
|
|
WIRESHARK_LICENSE_FILES = COPYING
|
|
WIRESHARK_DEPENDENCIES = host-pkgconf host-python3 libgcrypt libpcap libglib2
|
|
|
|
WIRESHARK_MAKE_ENV = \
|
|
$(TARGET_MAKE_ENV) \
|
|
PATH="$(@D)/bin:$(BR_PATH)"
|
|
|
|
WIRESHARK_CONF_OPTS = \
|
|
-DENABLE_PCAP=ON \
|
|
-DENABLE_SMI=OFF \
|
|
-DENABLE_STATIC=OFF \
|
|
-DBUILD_sdjournal=OFF
|
|
|
|
# wireshark needs the host version of lemon during compilation.
|
|
# This binrary is provided by sqlite-src (which is different from
|
|
# sqlite-autotools that is currently packaged in buildroot) moreover wireshark
|
|
# adds several patches.
|
|
# So, instead of creating a separate host package and installing lemon to
|
|
# $(HOST_DIR), this binary is compiled on-the-fly
|
|
define WIRESHARK_BUILD_LEMON_TOOL
|
|
cd $(@D); \
|
|
mkdir -p $(@D)/bin; \
|
|
$(HOSTCC) $(HOST_CFLAGS) -o $(@D)/bin/lemon tools/lemon/lemon.c
|
|
endef
|
|
|
|
WIRESHARK_PRE_BUILD_HOOKS += WIRESHARK_BUILD_LEMON_TOOL
|
|
|
|
ifeq ($(BR2_PACKAGE_WIRESHARK_GUI),y)
|
|
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=ON
|
|
WIRESHARK_DEPENDENCIES += qt5base qt5multimedia qt5svg qt5tools
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DBUILD_wireshark=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_BCG729),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=ON
|
|
WIRESHARK_DEPENDENCIES += bcg729
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_BCG729=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_C_ARES),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_CARES=ON
|
|
WIRESHARK_DEPENDENCIES += c-ares
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_CARES=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=ON
|
|
WIRESHARK_DEPENDENCIES += gnutls
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_GNUTLS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBKRB5),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=ON
|
|
WIRESHARK_DEPENDENCIES += libkrb5
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_KERBEROS=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBMAXMINDDB),y)
|
|
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=ON
|
|
WIRESHARK_DEPENDENCIES += libmaxminddb
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DBUILD_mmdbresolve=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=ON
|
|
WIRESHARK_DEPENDENCIES += libnl
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_NETLINK=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSSH),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=ON
|
|
WIRESHARK_DEPENDENCIES += libssh
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LIBSSH=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=ON
|
|
WIRESHARK_DEPENDENCIES += libxml2
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LIBXML2=OFF
|
|
endif
|
|
|
|
# no support for lua53 yet
|
|
ifeq ($(BR2_PACKAGE_LUA_5_1),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LUA=ON
|
|
WIRESHARK_DEPENDENCIES += lua
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LUA=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LZ4),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=ON
|
|
WIRESHARK_DEPENDENCIES += lz4
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_LZ4=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NGHTTP2),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=ON
|
|
WIRESHARK_DEPENDENCIES += nghttp2
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_NGHTTP2=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SBC),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SBC=ON
|
|
WIRESHARK_DEPENDENCIES += sbc
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SBC=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SNAPPY),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=ON
|
|
WIRESHARK_DEPENDENCIES += snappy
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SNAPPY=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SPANDSP),y)
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=ON
|
|
WIRESHARK_DEPENDENCIES += spandsp
|
|
else
|
|
WIRESHARK_CONF_OPTS += -DENABLE_SPANDSP=OFF
|
|
endif
|
|
|
|
define WIRESHARK_REMOVE_DOCS
|
|
find $(TARGET_DIR)/usr/share/wireshark -name '*.txt' -print0 \
|
|
-o -name '*.html' -print0 | xargs -0 rm -f
|
|
endef
|
|
|
|
WIRESHARK_POST_INSTALL_TARGET_HOOKS += WIRESHARK_REMOVE_DOCS
|
|
|
|
$(eval $(cmake-package))
|