a8e0f0a661b9456154e196ed866b504e2e4d8435
[vuplus_openembedded] / libpcap / libpcap_0.7.2.oe
1 DESCRIPTION = "Network Packet Capture Library"
2 SECTION = "libs"
3 PRIORITY = "required"
4 MAINTAINER = "Greg Gilbert <treke@handhelds.org>"
5
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"
10
11 inherit autotools
12
13 EXTRA_OECONF = "--with-pcap=linux"
14 CPPFLAGS_prepend = "-I${S} "
15 CFLAGS_prepend = "-I${S} "
16 CXXFLAGS_prepend = "-I${S} "
17
18 do_configure_prepend () {
19         if [ ! -e acinclude.m4 ]; then
20                 cat aclocal.m4 > acinclude.m4
21         fi
22 }
23
24 do_stage () {
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}
30 }