blob: 4790134ae9f48e486e956727d74e49b2048f27c2 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001require libcap-ng.inc
2
Patrick Williams213cb262021-08-07 19:21:33 -05003FILESEXTRAPATHS:prepend := "${THISDIR}/libcap-ng:"
Brad Bishop96ff1982019-08-19 13:50:42 -04004
Brad Bishop15ae2502019-06-18 21:44:24 -04005SUMMARY .= " - python"
6
Andrew Geissler90fd73c2021-03-05 15:25:55 -06007inherit lib_package autotools python3targetconfig
Brad Bishop15ae2502019-06-18 21:44:24 -04008
Patrick Williams169d7bc2024-01-05 11:33:25 -06009# drop setuptools when version > 0.8.3 is released; it's needed only for distutils
10DEPENDS += "libcap-ng python3 swig-native python3-setuptools-native"
Brad Bishop15ae2502019-06-18 21:44:24 -040011
12S = "${WORKDIR}/libcap-ng-${PV}"
13
Patrick Williams705982a2024-01-12 09:51:57 -060014EXTRA_OECONF += "--with-python3"
Brad Bishop15ae2502019-06-18 21:44:24 -040015
Patrick Williams213cb262021-08-07 19:21:33 -050016do_install:append() {
Brad Bishop15ae2502019-06-18 21:44:24 -040017 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
Patrick Williams213cb262021-08-07 19:21:33 -050027FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
28FILES:${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
Brad Bishop15ae2502019-06-18 21:44:24 -040029