blob: 611543e42c0345ef9b7da7747e30c12cc99fe61a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001require libpcap.inc
2
3SRC_URI += "file://aclocal.patch \
4 file://libpcap-pkgconfig-support.patch \
5 "
6SRC_URI[md5sum] = "5f14191c1a684a75532c739c2c4059fa"
7SRC_URI[sha256sum] = "5db3e2998f1eeba2c76da55da5d474248fe19c44f49e15cac8a796a2c7e19690"
8
9#
10# make install doesn't cover the shared lib
11# make install-shared is just broken (no symlinks)
12#
13
14do_configure_prepend () {
15 #remove hardcoded references to /usr/include
16 sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.in
17}
18
19do_install_prepend () {
20 install -d ${D}${libdir}
21 install -d ${D}${bindir}
22 oe_runmake install-shared DESTDIR=${D}
23 oe_libinstall -a -so libpcap ${D}${libdir}
24 sed "s|@VERSION@|${PV}|" -i ${B}/libpcap.pc
25 install -D -m 0644 libpcap.pc ${D}${libdir}/pkgconfig/libpcap.pc
26}