autotools.bbclass: check if pkgconfig dir exists before trying to copy out pkgconfig...
authorKoen Kooi <koen@openembedded.org>
Fri, 8 Aug 2008 13:03:42 +0000 (13:03 +0000)
committerKoen Kooi <koen@openembedded.org>
Fri, 8 Aug 2008 13:03:42 +0000 (13:03 +0000)
* 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

index 7137876..b4e78f8 100644 (file)
@@ -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