2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2005-01-18 00:28:09 +00:00
|
|
|
#
|
2007-08-19 21:11:15 +00:00
|
|
|
# libpcap
|
2005-01-18 00:28:09 +00:00
|
|
|
#
|
2013-06-05 23:53:30 +00:00
|
|
|
################################################################################
|
2005-01-18 00:28:09 +00:00
|
|
|
|
2015-07-13 17:53:38 +03:00
|
|
|
LIBPCAP_VERSION = 1.7.4
|
2012-01-26 13:51:30 -03:00
|
|
|
LIBPCAP_SITE = http://www.tcpdump.org/release
|
2012-08-11 16:10:20 -04:00
|
|
|
LIBPCAP_LICENSE = BSD-3c
|
|
|
|
|
LIBPCAP_LICENSE_FILES = LICENSE
|
2012-01-26 13:51:30 -03:00
|
|
|
LIBPCAP_INSTALL_STAGING = YES
|
2013-06-08 23:45:36 +00:00
|
|
|
LIBPCAP_DEPENDENCIES = zlib host-flex host-bison
|
|
|
|
|
|
|
|
|
|
# We're patching configure.in
|
|
|
|
|
LIBPCAP_AUTORECONF = YES
|
2014-12-30 08:36:23 +01:00
|
|
|
LIBPCAP_CONF_ENV = \
|
|
|
|
|
ac_cv_linux_vers=2 \
|
|
|
|
|
ac_cv_header_linux_wireless_h=yes \
|
|
|
|
|
CFLAGS="$(LIBPCAP_CFLAGS)"
|
2013-06-08 23:45:36 +00:00
|
|
|
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux
|
2013-02-07 12:35:03 +00:00
|
|
|
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
2009-10-07 22:08:37 +02:00
|
|
|
|
2014-10-31 08:59:28 +02: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
|
|
|
|
|
|
2014-08-03 22:38:49 -03:00
|
|
|
# On purpose, not compatible with bluez5
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
|
|
|
|
|
LIBPCAP_DEPENDENCIES += bluez_utils
|
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
2014-08-03 22:38:49 -03:00
|
|
|
endif
|
|
|
|
|
|
2014-06-18 10:21:36 -03:00
|
|
|
ifeq ($(BR2_PACKAGE_DBUS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --enable-dbus
|
2014-06-18 10:21:36 -03:00
|
|
|
LIBPCAP_DEPENDENCIES += dbus
|
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --disable-dbus
|
2014-06-18 10:21:36 -03:00
|
|
|
endif
|
|
|
|
|
|
2012-12-06 09:41:52 -08:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --enable-canusb
|
2012-12-06 09:41:52 -08:00
|
|
|
LIBPCAP_DEPENDENCIES += libusb
|
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --disable-canusb
|
2012-12-06 09:41:52 -08:00
|
|
|
endif
|
|
|
|
|
|
2013-06-08 23:45:36 +00:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
|
LIBPCAP_DEPENDENCIES += libnl
|
|
|
|
|
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBPCAP_CONF_OPTS += --without-libnl
|
2013-06-08 23:45:36 +00:00
|
|
|
endif
|
|
|
|
|
|
2015-11-03 18:17:35 +01:00
|
|
|
# microblaze/sparc64 need -fPIC instead of -fpic
|
|
|
|
|
ifeq ($(BR2_microblaze)$(BR2_sparc64),y)
|
2013-06-08 23:45:36 +00:00
|
|
|
LIBPCAP_CFLAGS += -fPIC
|
2012-09-05 16:04:52 +02:00
|
|
|
endif
|
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|