1 DESCRIPTION = "Network Packet Capture Library"
2 HOMEPAGE = "http://www.tcpdump.org/"
3 SECTION = "libs/network"
5 DEPENDS = "flex-native bison-native"
7 # Don't forget to edit shared.patch to have the correct version number inside
8 SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz \
9 file://shared.patch;patch=1"
13 EXTRA_OECONF = "--with-pcap=linux"
15 CPPFLAGS_prepend = "-I${S} "
16 CFLAGS_prepend = "-I${S} "
17 CXXFLAGS_prepend = "-I${S} "
19 do_configure_prepend () {
20 if [ ! -e acinclude.m4 ]; then
21 cat aclocal.m4 > acinclude.m4
26 install -m 0644 pcap.h ${STAGING_INCDIR}/pcap.h
27 install -m 0644 pcap-namedb.h ${STAGING_INCDIR}/pcap-namedb.h
28 install -m 0644 pcap-bpf.h ${STAGING_INCDIR}/pcap-bpf.h
29 oe_libinstall -a -so libpcap ${STAGING_LIBDIR}
30 install -d ${STAGING_INCDIR}/net
31 ln -sf ${STAGING_INCDIR}/pcap-bpf.h ${STAGING_INCDIR}/net/bpf.h
32 install -m 0644 acinclude.m4 ${STAGING_DATADIR}/aclocal/libpcap.m4