Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | require libpcap.inc |
| 2 | |
| 3 | SRC_URI += "file://aclocal.patch \ |
| 4 | file://libpcap-pkgconfig-support.patch \ |
| 5 | " |
| 6 | SRC_URI[md5sum] = "5f14191c1a684a75532c739c2c4059fa" |
| 7 | SRC_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 | |
| 14 | do_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 | |
| 19 | do_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 | } |