1 ################################################################################
5 ################################################################################
7 LIBPCAP_VERSION
= 1.8.1
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
15 ac_cv_header_linux_wireless_h
=yes \
16 CFLAGS
="$(LIBPCAP_CFLAGS)"
17 LIBPCAP_CFLAGS
= $(TARGET_CFLAGS
)
18 LIBPCAP_CONF_OPTS
= --disable-yydebug
--with-pcap
=linux
19 LIBPCAP_CONFIG_SCRIPTS
= pcap-config
21 # Omit -rpath from pcap-config output
22 define LIBPCAP_CONFIG_REMOVE_RPATH
23 $(SED
) 's/^V_RPATH_OPT=.*/V_RPATH_OPT=""/g' $(@D
)/pcap-config
25 LIBPCAP_POST_BUILD_HOOKS
= LIBPCAP_CONFIG_REMOVE_RPATH
27 # On purpose, not compatible with bluez5
28 ifeq ($(BR2_PACKAGE_BLUEZ_UTILS
),y
)
29 LIBPCAP_DEPENDENCIES
+= bluez_utils
31 LIBPCAP_CONF_OPTS
+= --disable-bluetooth
34 ifeq ($(BR2_PACKAGE_DBUS
),y
)
35 LIBPCAP_CONF_OPTS
+= --enable-dbus
36 LIBPCAP_DEPENDENCIES
+= dbus
38 LIBPCAP_CONF_OPTS
+= --disable-dbus
41 ifeq ($(BR2_PACKAGE_LIBUSB
),y
)
42 LIBPCAP_CONF_OPTS
+= --enable-canusb
43 LIBPCAP_DEPENDENCIES
+= libusb
45 LIBPCAP_CONF_OPTS
+= --disable-canusb
48 ifeq ($(BR2_PACKAGE_LIBNL
),y
)
49 LIBPCAP_DEPENDENCIES
+= libnl
50 LIBPCAP_CFLAGS
+= "-I$(STAGING_DIR)/usr/include/libnl3"
51 LIBPCAP_CONF_OPTS
+= --with-libnl
=$(STAGING_DIR
)/usr
53 LIBPCAP_CONF_OPTS
+= --without-libnl
56 # microblaze/sparc64 need -fPIC instead of -fpic
57 ifeq ($(BR2_microblaze
)$(BR2_sparc64
),y
)
58 LIBPCAP_CFLAGS
+= -fPIC
61 $(eval
$(autotools-package
))