summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2008-08-08 13:03:42 +0000
committerKoen Kooi <koen@openembedded.org>2008-08-08 13:03:42 +0000
commit839acf519ef0d68d6b253a24556d0fb7ed02835d (patch)
tree46beb829be93450fcb5d07096f6e66b527d85492 /classes
parentdfee6bc09f8e00b72a87e6cc886bf4395469f5b5 (diff)
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
Diffstat (limited to 'classes')
-rw-r--r--classes/autotools.bbclass6
1 files changed, 4 insertions, 2 deletions
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