2005-01-18 08:28:09 +08:00
|
|
|
#############################################################
|
|
|
|
#
|
2007-08-20 05:11:15 +08:00
|
|
|
# libpcap
|
2005-01-18 08:28:09 +08:00
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2010-11-04 10:50:28 +08:00
|
|
|
LIBPCAP_VERSION:=1.1.1
|
2005-01-18 08:28:09 +08:00
|
|
|
LIBPCAP_SITE:=http://www.tcpdump.org/release
|
2007-07-11 22:06:06 +08:00
|
|
|
LIBPCAP_SOURCE:=libpcap-$(LIBPCAP_VERSION).tar.gz
|
2009-10-08 04:08:37 +08: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-31 01:04:10 +08:00
|
|
|
LIBPCAP_INSTALL_STAGING_OPT= DESTDIR="$(STAGING_DIR)" install \
|
|
|
|
$(if $(BR2_PREFER_STATIC_LIB),,install-shared)
|
2009-10-08 04:08:37 +08:00
|
|
|
LIBPCAP_DEPENDENCIES:=zlib
|
2011-01-25 16:46:58 +08:00
|
|
|
LIBPCAP_CONF_ENV:=ac_cv_linux_vers=2 \
|
2009-12-09 21:00:55 +08:00
|
|
|
ac_cv_header_linux_wireless_h=yes # configure misdetects this
|
2009-10-08 04:08:37 +08:00
|
|
|
LIBPCAP_CONF_OPT:=--disable-yydebug --with-pcap=linux
|
|
|
|
|
|
|
|
$(eval $(call AUTOTARGETS,package,libpcap))
|