summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-03-23 16:17:03 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-03-23 16:17:03 +0000
commita66c459e7428e3953c603be1349c222bbd00e8b6 (patch)
tree2deb97169e7fa2591083594649ec5cf5d14297b3
parent9dcffd01e521467ec3f2b587be0e41a5aaca49f3 (diff)
autotools.bbclass: enable installing .pc files on demand
(see file for lenghty explanation)
-rw-r--r--classes/autotools.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass
index 1f03825b92..53480e5a15 100644
--- a/classes/autotools.bbclass
+++ b/classes/autotools.bbclass
@@ -214,6 +214,18 @@ autotools_stage_all() {
echo "cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}"
cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
fi
+
+ fi
+ # Ok, this is nasty. pkgconfig.bbclass is usually used to install .pc files,
+ # however some packages rely on the presence of .pc files to enable/disable
+ # their configurataions in which case we better should not install everything
+ # unconditionally, but rather depend on the actual results of make install.
+ # The good news though: a) there are not many packages doing this and
+ # 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/
fi
rm -rf ${STAGE_TEMP}/${mandir} || true
rm -rf ${STAGE_TEMP}/${infodir} || true