From b6c52ab509f40208894a0909ad8d2de4e360657e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 11 May 2014 01:39:11 +0200 Subject: [PATCH] polkit-qt-1: hack include and libdirs in cmake so that dependents build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- recipes-kde/polkit-qt-1/polkit-qt-1_git.bb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/recipes-kde/polkit-qt-1/polkit-qt-1_git.bb b/recipes-kde/polkit-qt-1/polkit-qt-1_git.bb index e1544e58..404fd595 100644 --- a/recipes-kde/polkit-qt-1/polkit-qt-1_git.bb +++ b/recipes-kde/polkit-qt-1/polkit-qt-1_git.bb @@ -12,4 +12,15 @@ PV = "0.103.0+git${SRCPV}" S = "${WORKDIR}/git" +EXTRA_OECMAKE += "-DLIB_INSTALL_DIR=${libdir}" + +# REVISIT: dirty hack to avoid libraries using me to fail at configuraton/compilation +do_install_append() { + # libpath + for file in $(find ${D}${libdir}/cmake -name '*Config.cmake') ; do + sed -i 's:\"${libdir}:\"${STAGING_DIR_TARGET}${libdir}:' $file + sed -i 's:\"include/polkit-qt5-1:\"${STAGING_DIR_TARGET}/include/polkit-qt5-1:' $file + done +} + FILES_${PN}-dev += "${libdir}/cmake"