Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 1 | require libcap-ng.inc |
| 2 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame] | 3 | FILESEXTRAPATHS_prepend := "${THISDIR}/libcap-ng:" |
| 4 | |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 5 | SUMMARY .= " - python" |
| 6 | |
Andrew Geissler | 90fd73c | 2021-03-05 15:25:55 -0600 | [diff] [blame^] | 7 | inherit lib_package autotools python3targetconfig |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 8 | |
| 9 | DEPENDS += "libcap-ng python3 swig-native" |
| 10 | |
| 11 | S = "${WORKDIR}/libcap-ng-${PV}" |
| 12 | |
| 13 | EXTRA_OECONF += "--with-python --with-python3" |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 14 | |
| 15 | do_install_append() { |
| 16 | rm -rf ${D}${bindir} |
| 17 | rm -rf ${D}${libdir}/.debug |
| 18 | rm -f ${D}${libdir}/lib* |
| 19 | rm -rf ${D}${libdir}/pkgconfig |
| 20 | rm -rf ${D}${datadir} |
| 21 | rm -rf ${D}${includedir} |
| 22 | } |
| 23 | |
| 24 | # PACKAGES = "${PN}" |
| 25 | |
| 26 | FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}" |
| 27 | FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so" |
| 28 | |