toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / libpcap / libpcap.mk
blob258308795379dc77d7cc53fa67f3757149897523
1 ################################################################################
3 # libpcap
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
14 LIBPCAP_CONF_ENV = \
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
24 endef
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
30 else
31 LIBPCAP_CONF_OPTS += --disable-bluetooth
32 endif
34 ifeq ($(BR2_PACKAGE_DBUS),y)
35 LIBPCAP_CONF_OPTS += --enable-dbus
36 LIBPCAP_DEPENDENCIES += dbus
37 else
38 LIBPCAP_CONF_OPTS += --disable-dbus
39 endif
41 ifeq ($(BR2_PACKAGE_LIBUSB),y)
42 LIBPCAP_CONF_OPTS += --enable-canusb
43 LIBPCAP_DEPENDENCIES += libusb
44 else
45 LIBPCAP_CONF_OPTS += --disable-canusb
46 endif
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
52 else
53 LIBPCAP_CONF_OPTS += --without-libnl
54 endif
56 # microblaze/sparc64 need -fPIC instead of -fpic
57 ifeq ($(BR2_microblaze)$(BR2_sparc64),y)
58 LIBPCAP_CFLAGS += -fPIC
59 endif
61 $(eval $(autotools-package))