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