From 839acf519ef0d68d6b253a24556d0fb7ed02835d Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Fri, 8 Aug 2008 13:03:42 +0000 Subject: autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig files * this is needed because e.g. not all gst recipes have .pc files, be we do want to install the ones that are present --- classes/autotools.bbclass | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'classes/autotools.bbclass') diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index 7137876a93..b4e78f8118 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -215,8 +215,10 @@ autotools_stage_all() { # b) packaged staging will fix that anyways. :M: if [ "${AUTOTOOLS_STAGE_PKGCONFIG}" = "1" ] then - echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/" - cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/ + if [ -e ${STAGE_TEMP}/${libdir}/pkgconfig/ ] ; then + echo "cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/" + cp -f ${STAGE_TEMP}/${libdir}/pkgconfig/*.pc ${STAGING_LIBDIR}/pkgconfig/ + fi fi rm -rf ${STAGE_TEMP}/${mandir} || true rm -rf ${STAGE_TEMP}/${infodir} || true -- cgit v1.2.3