AMB (automotive-message-broker): fix pkg-config header path 47/4447/1
authorManuel Bachmann <mbc@iot.bzh>
Wed, 9 Dec 2015 11:06:56 +0000 (11:06 +0000)
committerManuel Bachmann <mbc@iot.bzh>
Wed, 9 Dec 2015 17:30:46 +0000 (17:30 +0000)
Recipe install step moves headers to "/usr/include" instead
of "/usr/include/amb", but pkg-config's .pc files are not
updated accordingly. Do this during the same step.

Change-Id: I83ee9e86e7708c9aebea9dd1b87474ba38da8365
Signed-off-by: Manuel Bachmann <mbc@iot.bzh>
meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb

index 2894b2c..77f14a0 100644 (file)
@@ -30,6 +30,7 @@ EXTRA_OECMAKE += " -Denable_icecc=OFF"
 
 do_install_append() {
     mv ${D}/usr/include/amb/* ${D}/usr/include
+    sed -i 's,/amb,,' ${D}${libdir}/pkgconfig/*.pc
 
     install -d ${D}${systemd_unitdir}/system/
     install -m 0644 ${WORKDIR}/ambd.service ${D}${systemd_unitdir}/system