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
27 do_install_append () {
28 install -d ${D}${includedir}/net
29 install -d ${D}${datadir}/aclocal
30 ln -sf ../pcap-bpf.h ${D}${includedir}/net/bpf.h
31 install -m 0644 acinclude.m4 ${D}${datadir}/aclocal/libpcap.m4