diff options
Diffstat (limited to 'meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb')
-rw-r--r-- | meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb new file mode 100644 index 0000000000..9072fe0b7d --- /dev/null +++ b/meta/recipes-connectivity/libpcap/libpcap_1.8.1.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | require libpcap.inc | ||
2 | |||
3 | SRC_URI += " \ | ||
4 | file://libpcap-pkgconfig-support.patch \ | ||
5 | " | ||
6 | |||
7 | SRC_URI[md5sum] = "3d48f9cd171ff12b0efd9134b52f1447" | ||
8 | SRC_URI[sha256sum] = "673dbc69fdc3f5a86fb5759ab19899039a8e5e6c631749e48dcd9c6f0c83541e" | ||
9 | |||
10 | # | ||
11 | # make install doesn't cover the shared lib | ||
12 | # make install-shared is just broken (no symlinks) | ||
13 | # | ||
14 | |||
15 | do_configure_prepend () { | ||
16 | #remove hardcoded references to /usr/include | ||
17 | sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.ac | ||
18 | } | ||
19 | |||
20 | do_install_prepend () { | ||
21 | install -d ${D}${libdir} | ||
22 | install -d ${D}${bindir} | ||
23 | oe_runmake install-shared DESTDIR=${D} | ||
24 | oe_libinstall -a -so libpcap ${D}${libdir} | ||
25 | sed "s|@VERSION@|${PV}|" -i ${B}/libpcap.pc | ||
26 | install -D -m 0644 libpcap.pc ${D}${libdir}/pkgconfig/libpcap.pc | ||
27 | } | ||