3033e83d12
Commit c46afc37dc
changed bluez5-utils
dependency by bluez5_utils-headers without replacing the test on
BR2_PACKAGE_BLUEZ5_UTILS by BR2_PACKAGE_BLUEZ5_UTILS_HEADERS
Fix this mistake and also add a select on
BR2_PACKAGE_BLUEZ5_UTILS_HEADERS if BR2_PACKAGE_BLUEZ5_UTILS is set
so the user does not have to do it
Fixes:
- http://autobuild.buildroot.org/results/c6828df1f3782564451ddd4187ff026679bf37d8
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# libpcap
|
|
#
|
|
################################################################################
|
|
|
|
LIBPCAP_VERSION = 1.9.0
|
|
LIBPCAP_SITE = http://www.tcpdump.org/release
|
|
LIBPCAP_LICENSE = BSD-3-Clause
|
|
LIBPCAP_LICENSE_FILES = LICENSE
|
|
LIBPCAP_INSTALL_STAGING = YES
|
|
LIBPCAP_DEPENDENCIES = zlib host-flex host-bison
|
|
|
|
LIBPCAP_CONF_ENV = \
|
|
ac_cv_header_linux_wireless_h=yes \
|
|
CFLAGS="$(LIBPCAP_CFLAGS)"
|
|
LIBPCAP_CFLAGS = $(TARGET_CFLAGS)
|
|
LIBPCAP_CONF_OPTS = --disable-yydebug --with-pcap=linux --without-dag
|
|
# Disable dbus to break recursive dependencies
|
|
LIBPCAP_CONF_OPTS += --disable-dbus
|
|
LIBPCAP_CONFIG_SCRIPTS = pcap-config
|
|
|
|
# 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
|
|
|
|
ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS_HEADERS),y)
|
|
LIBPCAP_DEPENDENCIES += bluez5_utils-headers
|
|
else
|
|
LIBPCAP_CONF_OPTS += --disable-bluetooth
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBNL),y)
|
|
LIBPCAP_DEPENDENCIES += libnl
|
|
LIBPCAP_CFLAGS += "-I$(STAGING_DIR)/usr/include/libnl3"
|
|
LIBPCAP_CONF_OPTS += --with-libnl=$(STAGING_DIR)/usr
|
|
else
|
|
LIBPCAP_CONF_OPTS += --without-libnl
|
|
endif
|
|
|
|
# microblaze/sparc/sparc64 need -fPIC instead of -fpic
|
|
ifeq ($(BR2_microblaze)$(BR2_sparc)$(BR2_sparc64),y)
|
|
LIBPCAP_CFLAGS += -fPIC
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|