2010-06-30 02:31:47 +00:00
|
|
|
require libpcap.inc
|
|
|
|
|
2015-02-25 04:39:01 +00:00
|
|
|
SRC_URI += "file://aclocal.patch \
|
|
|
|
file://libpcap-pkgconfig-support.patch \
|
|
|
|
"
|
2015-11-18 09:34:36 +00:00
|
|
|
SRC_URI[md5sum] = "b2e13142bbaba857ab1c6894aedaf547"
|
|
|
|
SRC_URI[sha256sum] = "7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0"
|
2010-12-08 04:06:29 +00:00
|
|
|
|
2010-06-30 02:31:47 +00:00
|
|
|
#
|
|
|
|
# make install doesn't cover the shared lib
|
|
|
|
# make install-shared is just broken (no symlinks)
|
|
|
|
#
|
2013-06-05 15:09:07 +00:00
|
|
|
|
|
|
|
do_configure_prepend () {
|
|
|
|
#remove hardcoded references to /usr/include
|
|
|
|
sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.in
|
|
|
|
}
|
|
|
|
|
2010-06-30 02:31:47 +00:00
|
|
|
do_install_prepend () {
|
|
|
|
install -d ${D}${libdir}
|
|
|
|
install -d ${D}${bindir}
|
|
|
|
oe_runmake install-shared DESTDIR=${D}
|
|
|
|
oe_libinstall -a -so libpcap ${D}${libdir}
|
2015-02-25 04:39:01 +00:00
|
|
|
sed "s|@VERSION@|${PV}|" -i ${B}/libpcap.pc
|
|
|
|
install -D -m 0644 libpcap.pc ${D}${libdir}/pkgconfig/libpcap.pc
|
2010-06-30 02:31:47 +00:00
|
|
|
}
|