2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2005-01-18 08:28:09 +08:00
|
|
|
#
|
2007-08-20 05:11:15 +08:00
|
|
|
# libpcap
|
2005-01-18 08:28:09 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2005-01-18 08:28:09 +08:00
|
|
|
|
2019-10-06 20:39:01 +08:00
|
|
|
LIBPCAP_VERSION = 1.9.1
|
2012-01-27 00:51:30 +08:00
|
|
|
LIBPCAP_SITE = http://www.tcpdump.org/release
|
2017-03-30 21:43:38 +08:00
|
|
|
LIBPCAP_LICENSE = BSD-3-Clause
|
2012-08-12 04:10:20 +08:00
|
|
|
LIBPCAP_LICENSE_FILES = LICENSE
|
2020-12-04 23:46:01 +08:00
|
|
|
LIBPCAP_CPE_ID_VENDOR = tcpdump
|
2012-01-27 00:51:30 +08:00
|
|
|
LIBPCAP_INSTALL_STAGING = YES
|
2020-01-08 20:08:20 +08:00
|
|
|
LIBPCAP_DEPENDENCIES = host-flex host-bison
|
2013-06-09 07:45:36 +08:00
|
|
|
|
2014-12-30 15:36:23 +08:00
|
|
|
LIBPCAP_CONF_ENV = \
|
|
|
|
ac_cv_header_linux_wireless_h=yes \
|
|
|
|
CFLAGS="$(LIBPCAP_CFLAGS)"
|
2013-06-09 07:45:36 +08:00
|
|
|
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
2019-02-04 00:17:40 +08:00
|
|
|
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux --without-dag
|
2019-03-10 02:28:14 +08:00
|
|
|
# Disable dbus to break recursive dependencies
|
|
|
|
LIBPCAP_CONF_OPTS += --disable-dbus
|
2013-02-07 20:35:03 +08:00
|
|
|
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
2009-10-08 04:08:37 +08:00
|
|
|
|
2014-10-31 14:59:28 +08: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-19 06:40:42 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
|
2019-03-18 03:09:46 +08:00
|
|
|
LIBPCAP_DEPENDENCIES += bluez5_utils-headers
|
2014-08-04 09:38:49 +08:00
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
2014-08-04 09:38:49 +08:00
|
|
|
endif
|
|
|
|
|
2013-06-09 07:45:36 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
LIBPCAP_DEPENDENCIES += libnl
|
|
|
|
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
2016-10-27 01:03:09 +08:00
|
|
|
LIBPCAP_CONF_OPTS += --with-libnl=$(STAGING_DIR)/usr
|
2013-06-09 07:45:36 +08:00
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
LIBPCAP_CONF_OPTS += --without-libnl
|
2013-06-09 07:45:36 +08:00
|
|
|
endif
|
|
|
|
|
2017-02-26 18:51:27 +08:00
|
|
|
# microblaze/sparc/sparc64 need -fPIC instead of -fpic
|
|
|
|
ifeq ($(BR2_microblaze)$(BR2_sparc)$(BR2_sparc64),y)
|
2013-06-09 07:45:36 +08:00
|
|
|
LIBPCAP_CFLAGS += -fPIC
|
2012-09-05 22:04:52 +08:00
|
|
|
endif
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|