1 DESCRIPTION = "Network Packet Capture Library"
4 MAINTAINER = "Greg Gilbert <treke@handhelds.org>"
6 SRC_URI = "http://www.tcpdump.org/release/libpcap-${PV}.tar.gz;"
7 SRC_URI_append = " file://libpcap-shared.patch;patch=1"
8 SRC_URI_append = " file://configure.patch;patch=1"
9 SRC_URI_append = " file://ldflags.patch;patch=1"
13 EXTRA_OECONF = "--with-pcap=linux"
14 CPPFLAGS_prepend = "-I${S} "
15 CFLAGS_prepend = "-I${S} "
16 CXXFLAGS_prepend = "-I${S} "
18 do_configure_prepend () {
19 if [ ! -e acinclude.m4 ]; then
20 cat aclocal.m4 > acinclude.m4
25 install -d ${STAGING_INCDIR}/net
26 install -m 0644 net/bpf.h ${STAGING_INCDIR}/net/bpf.h
27 install -m 0644 pcap.h ${STAGING_INCDIR}/pcap.h
28 install -m 0644 pcap-namedb.h ${STAGING_INCDIR}/pcap-namedb.h
29 oe_libinstall -a -so libpcap ${STAGING_LIBDIR}