From 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 Mon Sep 17 00:00:00 2001 From: Patrick Williams Date: Wed, 17 Aug 2016 14:31:25 -0500 Subject: yocto-poky: Move to import-layers subdir We are going to import additional layers, so create a subdir to hold all of the layers that we import with git-subtree. Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799 Signed-off-by: Patrick Williams --- .../recipes-connectivity/libpcap/libpcap_1.7.4.bb | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 import-layers/yocto-poky/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb (limited to 'import-layers/yocto-poky/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb') diff --git a/import-layers/yocto-poky/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb b/import-layers/yocto-poky/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb new file mode 100644 index 000000000..8d12b2521 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-connectivity/libpcap/libpcap_1.7.4.bb @@ -0,0 +1,26 @@ +require libpcap.inc + +SRC_URI += "file://aclocal.patch \ + file://libpcap-pkgconfig-support.patch \ + " +SRC_URI[md5sum] = "b2e13142bbaba857ab1c6894aedaf547" +SRC_URI[sha256sum] = "7ad3112187e88328b85e46dce7a9b949632af18ee74d97ffc3f2b41fe7f448b0" + +# +# make install doesn't cover the shared lib +# make install-shared is just broken (no symlinks) +# + +do_configure_prepend () { + #remove hardcoded references to /usr/include + sed 's|\([ "^'\''I]\+\)/usr/include/|\1${STAGING_INCDIR}/|g' -i ${S}/configure.in +} + +do_install_prepend () { + install -d ${D}${libdir} + install -d ${D}${bindir} + oe_runmake install-shared DESTDIR=${D} + oe_libinstall -a -so libpcap ${D}${libdir} + sed "s|@VERSION@|${PV}|" -i ${B}/libpcap.pc + install -D -m 0644 libpcap.pc ${D}${libdir}/pkgconfig/libpcap.pc +} -- cgit v1.2.1