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
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2009-10-07 22:08:37 +02:00
|
|
|
LIBPCAP_VERSION:=1.0.0
|
2005-01-18 01:28:09 +01:00
|
|
|
LIBPCAP_SITE:=http://www.tcpdump.org/release
|
2007-07-11 16:06:06 +02:00
|
|
|
LIBPCAP_SOURCE:=libpcap-$(LIBPCAP_VERSION).tar.gz
|
2009-10-07 22:08:37 +02:00
|
|
|
LIBPCAP_INSTALL_STAGING:=YES
|
|
|
|
# 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)
|
2009-10-07 22:08:37 +02:00
|
|
|
LIBPCAP_DEPENDENCIES:=zlib
|
2009-12-09 14:00:55 +01:00
|
|
|
LIBPCAP_CONF_ENV:=ac_cv_linux_vers=$(firstword $(subst .,$(space),$(firstword $(call qstrip,$(BR2_DEFAULT_KERNEL_HEADERS))))) \
|
|
|
|
ac_cv_header_linux_wireless_h=yes # configure misdetects this
|
2009-10-07 22:08:37 +02:00
|
|
|
LIBPCAP_CONF_OPT:=--disable-yydebug --with-pcap=linux
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,libpcap))
|