[oe-commits] org.oe.dev autotools.bbclass: enable installing .pc files on demand
mickeyl commit
oe at amethyst.openembedded.net
Sun Mar 23 17:17:11 UTC 2008
autotools.bbclass: enable installing .pc files on demand
(see file for lenghty explanation)
Author: mickeyl at openembedded.org
Branch: org.openembedded.dev
Revision: 64705d4f88fd9c4f297332c4c0d758387648d902
ViewMTN: http://monotone.openembedded.org/revision/info/64705d4f88fd9c4f297332c4c0d758387648d902
Files:
1
classes/autotools.bbclass
Diffs:
#
# mt diff -r790aa11c64e9dc4a2c87583222f59ac903d1859a -r64705d4f88fd9c4f297332c4c0d758387648d902
#
#
#
# patch "classes/autotools.bbclass"
# from [a03edf4667fb88b98d0f6ea62adcf75168d43bea]
# to [aca69d07902b5d16cc3be9cc17ba2089144114e5]
#
============================================================
--- classes/autotools.bbclass a03edf4667fb88b98d0f6ea62adcf75168d43bea
+++ classes/autotools.bbclass aca69d07902b5d16cc3be9cc17ba2089144114e5
@@ -214,7 +214,19 @@ 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
autotools_stage_dir ${STAGE_TEMP}/${datadir} ${STAGING_DATADIR}
More information about the Openembedded-commits
mailing list