Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 1 | require libcap-ng.inc |
| 2 | |
| 3 | SUMMARY .= " - python" |
| 4 | |
| 5 | inherit lib_package autotools python3native |
| 6 | |
| 7 | DEPENDS += "libcap-ng python3 swig-native" |
| 8 | |
| 9 | S = "${WORKDIR}/libcap-ng-${PV}" |
| 10 | |
| 11 | EXTRA_OECONF += "--with-python --with-python3" |
| 12 | EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'" |
| 13 | |
| 14 | do_install_append() { |
| 15 | rm -rf ${D}${bindir} |
| 16 | rm -rf ${D}${libdir}/.debug |
| 17 | rm -f ${D}${libdir}/lib* |
| 18 | rm -rf ${D}${libdir}/pkgconfig |
| 19 | rm -rf ${D}${datadir} |
| 20 | rm -rf ${D}${includedir} |
| 21 | } |
| 22 | |
| 23 | # PACKAGES = "${PN}" |
| 24 | |
| 25 | FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}" |
| 26 | FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so" |
| 27 | |