blob: 43f76dc561aa4ebffb1ab9a2a3ea321692036f59 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001require libcap-ng.inc
2
Brad Bishop96ff1982019-08-19 13:50:42 -04003FILESEXTRAPATHS_prepend := "${THISDIR}/libcap-ng:"
4
Brad Bishop15ae2502019-06-18 21:44:24 -04005SUMMARY .= " - python"
6
7inherit lib_package autotools python3native
8
9DEPENDS += "libcap-ng python3 swig-native"
10
11S = "${WORKDIR}/libcap-ng-${PV}"
12
13EXTRA_OECONF += "--with-python --with-python3"
14EXTRA_OEMAKE += "PYLIBVER='python${PYTHON_BASEVERSION}${PYTHON_ABI}' PYINC='${STAGING_INCDIR}/${PYLIBVER}'"
15
16do_install_append() {
17 rm -rf ${D}${bindir}
18 rm -rf ${D}${libdir}/.debug
19 rm -f ${D}${libdir}/lib*
20 rm -rf ${D}${libdir}/pkgconfig
21 rm -rf ${D}${datadir}
22 rm -rf ${D}${includedir}
23}
24
25# PACKAGES = "${PN}"
26
27FILES_${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
28FILES_${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
29