From 5f3d05141b3ff1b725811b7c042829f4e1ae4467 Mon Sep 17 00:00:00 2001
From: Manuel Bachmann <mbc@iot.bzh>
Date: Wed, 9 Dec 2015 11:06:56 +0000
Subject: [PATCH] AMB (automotive-message-broker): fix pkg-config header path

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>
---
 .../automotive-message-broker/automotive-message-broker_git.bb           | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb b/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb
index 2894b2ce1..77f14a02d 100644
--- a/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb
+++ b/meta-ivi-common/recipes-automotive/automotive-message-broker/automotive-message-broker_git.bb
@@ -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
-- 
2.16.6