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
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2012-06-24 23:07:35 +02:00
|
|
|
LIBPCAP_VERSION = 1.3.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
|
2012-08-11 22:10:20 +02:00
|
|
|
|
2009-10-07 22:08:37 +02:00
|
|
|
# doesn't have an install-strip
|
|
|
|
LIBPCAP_INSTALL_TARGET_OPT= DESTDIR="$(TARGET_DIR)" \
|
|
|
|
$(if $(BR2_PREFER_STATIC_LIB),install,install-shared)
|
2009-10-30 18:04:10 +01:00
|
|
|
LIBPCAP_INSTALL_STAGING_OPT= DESTDIR="$(STAGING_DIR)" install \
|
|
|
|
$(if $(BR2_PREFER_STATIC_LIB),,install-shared)
|
2012-06-26 06:19:50 +02:00
|
|
|
LIBPCAP_DEPENDENCIES = zlib \
|
|
|
|
$(if $(BR2_PACKAGE_LIBUSB),libusb)
|
2012-01-26 17:51:30 +01:00
|
|
|
LIBPCAP_CONF_ENV = ac_cv_linux_vers=2 \
|
|
|
|
ac_cv_header_linux_wireless_h=yes # configure misdetects this
|
|
|
|
LIBPCAP_CONF_OPT = --disable-yydebug --with-pcap=linux
|
2009-10-07 22:08:37 +02:00
|
|
|
|
2012-09-05 16:04:52 +02:00
|
|
|
# microblaze needs -fPIC instead of -fpic
|
|
|
|
ifeq ($(BR2_microblaze),y)
|
|
|
|
LIBPCAP_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -fPIC"
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|