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
|
|
|
|
2013-06-08 05:52:59 +02:00
|
|
|
LIBPCAP_VERSION = 1.4.0
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_SITE = http://www.tcpdump.org/release
|
2012-08-11 22:10:20 +02:00
|
|
|
LIBPCAP_LICENSE = BSD-3c
|
|
|
|
LIBPCAP_LICENSE_FILES = LICENSE
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_INSTALL_STAGING = YES
|
2013-06-09 01:45:36 +02:00
|
|
|
LIBPCAP_DEPENDENCIES = zlib host-flex host-bison
|
|
|
|
|
|
|
|
# We're patching configure.in
|
|
|
|
LIBPCAP_AUTORECONF = YES
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_CONF_ENV = ac_cv_linux_vers=2 \
|
2013-06-09 01:45:36 +02:00
|
|
|
ac_cv_header_linux_wireless_h=yes \
|
|
|
|
CFLAGS="$(LIBPCAP_CFLAGS)"
|
|
|
|
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_CONF_OPT = --disable-yydebug --with-pcap=linux
|
2013-02-07 13:35:03 +01:00
|
|
|
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
2009-10-07 22:08:37 +02:00
|
|
|
|
2012-12-06 18:41:52 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBUSB),y)
|
|
|
|
LIBPCAP_CONF_OPT += --enable-canusb
|
|
|
|
LIBPCAP_DEPENDENCIES += libusb
|
|
|
|
else
|
|
|
|
LIBPCAP_CONF_OPT += --disable-canusb
|
|
|
|
endif
|
|
|
|
|
2013-06-09 01:45:36 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
|
|
LIBPCAP_DEPENDENCIES += libnl
|
|
|
|
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
|
|
|
else
|
|
|
|
LIBPCAP_CONF_OPT += --without-libnl
|
|
|
|
endif
|
|
|
|
|
2012-09-05 16:04:52 +02:00
|
|
|
# microblaze needs -fPIC instead of -fpic
|
|
|
|
ifeq ($(BR2_microblaze),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))
|