From 6e3a31ca6094f32f169936693f34052052fb593e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Feb 2020 17:36:46 +0000 Subject: pkgconfig support in bjam eclass --- eclass/bjam.eclass | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'eclass') diff --git a/eclass/bjam.eclass b/eclass/bjam.eclass index 294c283..f6cc7c1 100644 --- a/eclass/bjam.eclass +++ b/eclass/bjam.eclass @@ -14,6 +14,13 @@ src_configure() { ebegin "Setting portage CXX and LD flags" sed -i "s|^using gcc .*|using gcc : : : \"${CXXFLAGS}\" \"${LDFLAGS}\" ;|" ${S}/Jamroot.jam eend $? + + ebegin "Applying macro replacements" + env | sed "s/^/-D'/;s/$/'/" | xargs m4 /dev/null -F "${TMPDIR}/m4.env" + find "${S}" -name "*.in" | while read infile ; do + m4 -R "${TMPDIR}/m4.env" "${infile}" > "${infile%.in}" + done + eend $? } src_test() { @@ -46,6 +53,11 @@ bjaminstall() { --libdir="${D}/usr/$(get_libdir)" \ --includedir="${D}/usr/include/$include" \ ${other[@]} + + insinto ${PKG_CONFIG_PATH} + find "${S}" -name "*.pc" | while read infile ; do + doins ${infile} + done } doxygenbuild() { -- cgit v1.2.3