blob: 1240589d0074cd25826be8032eba2c7325f3bdfa [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
9DEPENDS += "libcap-ng python3 swig-native"
10
11S = "${WORKDIR}/libcap-ng-${PV}"
12
13EXTRA_OECONF += "--with-python --with-python3"
Brad Bishop15ae2502019-06-18 21:44:24 -040014
Patrick Williams213cb262021-08-07 19:21:33 -050015do_install:append() {
Brad Bishop15ae2502019-06-18 21:44:24 -040016 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
Patrick Williams213cb262021-08-07 19:21:33 -050026FILES:${PN} = "${libdir}/python${PYTHON_BASEVERSION}"
27FILES:${PN}-dbg =+ "${PYTHON_SITEPACKAGES_DIR}/.debug/_capng.so"
Brad Bishop15ae2502019-06-18 21:44:24 -040028