2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-01-18 01:28:09 +01:00
|
|
|
#
|
2007-08-19 23:11:15 +02:00
|
|
|
# libpcap
|
2005-01-18 01:28:09 +01:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-01-18 01:28:09 +01:00
|
|
|
|
2021-06-24 12:55:34 +02:00
|
|
|
LIBPCAP_VERSION = 1.10.1
|
2021-01-21 18:16:03 +01:00
|
|
|
LIBPCAP_SITE = https://www.tcpdump.org/release
|
2017-03-30 15:43:38 +02:00
|
|
|
LIBPCAP_LICENSE = BSD-3-Clause
|
2012-08-11 22:10:20 +02:00
|
|
|
LIBPCAP_LICENSE_FILES = LICENSE
|
2020-12-04 16:46:01 +01:00
|
|
|
LIBPCAP_CPE_ID_VENDOR = tcpdump
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_INSTALL_STAGING = YES
|
2021-01-21 18:16:03 +01:00
|
|
|
LIBPCAP_DEPENDENCIES = host-flex host-bison host-pkgconf
|
2013-06-09 01:45:36 +02:00
|
|
|
|
2021-01-22 23:52:21 +01:00
|
|
|
# ac_cv_prog_cc_c99 is required for BR2_USE_WCHAR=n because the C99 test
|
|
|
|
# provided by autoconf relies on wchar_t.
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBPCAP_CONF_ENV = \
|
|
|
|
ac_cv_header_linux_wireless_h=yes \
|
2021-01-22 23:52:21 +01:00
|
|
|
ac_cv_prog_cc_c99=-std=gnu99 \
|
2014-12-30 08:36:23 +01:00
|
|
|
CFLAGS="$(LIBPCAP_CFLAGS)"
|
2013-06-09 01:45:36 +02:00
|
|
|
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
2021-01-21 18:16:03 +01:00
|
|
|
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux --without-dag \
|
|
|
|
--without-dpdk
|
2019-03-09 19:28:14 +01:00
|
|
|
# Disable dbus to break recursive dependencies
|
|
|
|
LIBPCAP_CONF_OPTS += --disable-dbus
|
2013-02-07 13:35:03 +01:00
|
|
|
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
2009-10-07 22:08:37 +02:00
|
|
|
|
2014-10-31 07:59:28 +01:00
|
|
|
# Omit -rpath from pcap-config output
|
|
|
|
define LIBPCAP_CONFIG_REMOVE_RPATH
|
|
|
|
$(SED) 's/^V_RPATH_OPT=.*/V_RPATH_OPT=""/g' $(@D)/pcap-config
|
|
|
|
endef
|
|
|
|
LIBPCAP_POST_BUILD_HOOKS = LIBPCAP_CONFIG_REMOVE_RPATH
|
|
|
|
|
2019-03-18 23:40:42 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
|
2019-03-17 20:09:46 +01:00
|
|
|
LIBPCAP_DEPENDENCIES += bluez5_utils-headers
|
2014-08-04 03:38:49 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
2014-08-04 03:38:49 +02:00
|
|
|
endif
|
|
|
|
|
2013-06-09 01:45:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
LIBPCAP_DEPENDENCIES += libnl
|
2021-01-21 18:16:03 +01:00
|
|
|
LIBPCAP_CONF_OPTS += --with-libnl
|
2013-06-09 01:45:36 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --without-libnl
|
2013-06-09 01:45:36 +02:00
|
|
|
endif
|
|
|
|
|
2017-02-26 11:51:27 +01:00
|
|
|
# microblaze/sparc/sparc64 need -fPIC instead of -fpic
|
|
|
|
ifeq ($(BR2_microblaze)$(BR2_sparc)$(BR2_sparc64),y)
|
2013-06-09 01:45:36 +02:00
|
|
|
LIBPCAP_CFLAGS += -fPIC
|
2012-09-05 16:04:52 +02:00
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|