1 ################################################################################
5 ################################################################################
7 LIBPCAP_VERSION = 1.7.2
8 LIBPCAP_SITE = http://www.tcpdump.org/release
9 LIBPCAP_LICENSE = BSD-3c
10 LIBPCAP_LICENSE_FILES = LICENSE
11 LIBPCAP_INSTALL_STAGING = YES
12 LIBPCAP_DEPENDENCIES = zlib host-flex host-bison
14 # We're patching configure.in
15 LIBPCAP_AUTORECONF = YES
18 ac_cv_header_linux_wireless_h=yes \
19 CFLAGS="$(LIBPCAP_CFLAGS)"
20 LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
21 LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux
22 LIBPCAP_CONFIG_SCRIPTS = pcap-config
24 # Omit -rpath from pcap-config output
25 define LIBPCAP_CONFIG_REMOVE_RPATH
26 $(SED) 's/^V_RPATH_OPT=.*/V_RPATH_OPT=""/g' $(@D)/pcap-config
28 LIBPCAP_POST_BUILD_HOOKS = LIBPCAP_CONFIG_REMOVE_RPATH
30 # On purpose, not compatible with bluez5
31 ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
32 LIBPCAP_DEPENDENCIES += bluez_utils
34 LIBPCAP_CONF_OPTS += --disable-bluetooth
37 ifeq ($(BR2_PACKAGE_DBUS),y)
38 LIBPCAP_CONF_OPTS += --enable-dbus
39 LIBPCAP_DEPENDENCIES += dbus
41 LIBPCAP_CONF_OPTS += --disable-dbus
44 ifeq ($(BR2_PACKAGE_LIBUSB),y)
45 LIBPCAP_CONF_OPTS += --enable-canusb
46 LIBPCAP_DEPENDENCIES += libusb
48 LIBPCAP_CONF_OPTS += --disable-canusb
51 ifeq ($(BR2_PACKAGE_LIBNL),y)
52 LIBPCAP_DEPENDENCIES += libnl
53 LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
55 LIBPCAP_CONF_OPTS += --without-libnl
58 # microblaze needs -fPIC instead of -fpic
59 ifeq ($(BR2_microblaze),y)
60 LIBPCAP_CFLAGS += -fPIC
63 $(eval $(autotools-package))