summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap-ng/libcap-ng_0.7.9.bb
blob: 6e6de454940c9b47715c85452db3de1da9b91fb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require libcap-ng.inc

inherit lib_package autotools

EXTRA_OECONF += "--without-python --without-python3"

BBCLASSEXTEND = "native nativesdk"

do_install_append() {
	# Moving libcap-ng to base_libdir
	if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
		mkdir -p ${D}/${base_libdir}/
		mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/
		relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
		ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so
	fi
}