From 5dfba7152c515d78f047c577de7d5aab9f0ccce6 Mon Sep 17 00:00:00 2001 From: Herb Kuta Date: Tue, 28 May 2019 16:35:36 -0700 Subject: [PATCH] DRAFT [morty] orocos-kdl.inc: Fix *.pc files --- includes-ros1/orocos-kinematics-dynamics/orocos-kdl.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/includes-ros1/orocos-kinematics-dynamics/orocos-kdl.inc b/includes-ros1/orocos-kinematics-dynamics/orocos-kdl.inc index 8572c3d..faf2ccf 100644 --- a/includes-ros1/orocos-kinematics-dynamics/orocos-kdl.inc +++ b/includes-ros1/orocos-kinematics-dynamics/orocos-kdl.inc @@ -2,6 +2,13 @@ inherit ros-insane +# Under morty, this line in manifest.xml: +# generates an absolute path for Cflags in *.pc . Convert it to ${includedir}. +do_install_append() { + # Don't write ${include}, as bitbake will expand it. + sed -i -e '/^Cflags:/ s@-I/.*/usr/include@-I$\{includedir}@g' ${D}${libdir}/pkgconfig/*.pc +} + # The cmake files aren't in their own "cmake" subdirectory. FILES_${PN}-dev_prepend = " \ ${datadir}/${ROS_BPN}/*.cmake \