summaryrefslogtreecommitdiff
path: root/openembedded/classes/autotools.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
committerRichard Purdie <richard@openedhand.com>2006-02-10 11:38:23 +0000
commit31116d6c7e368c42bcfdf2dba2000b2203f08e85 (patch)
tree9737ea7c974da46ca2a9ee4acad8aabb9cbb2bac /openembedded/classes/autotools.bbclass
parent9df0203e2b27ef3ae28b60447df6b91be7be81dc (diff)
downloadopenembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.gz
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.bz2
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.tar.xz
openembedded-core-31116d6c7e368c42bcfdf2dba2000b2203f08e85.zip
Update bbclasses from OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@266 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/autotools.bbclass')
-rw-r--r--openembedded/classes/autotools.bbclass31
1 files changed, 24 insertions, 7 deletions
diff --git a/openembedded/classes/autotools.bbclass b/openembedded/classes/autotools.bbclass
index 8d448ce0d..927e3432b 100644
--- a/openembedded/classes/autotools.bbclass
+++ b/openembedded/classes/autotools.bbclass
@@ -151,15 +151,32 @@ autotools_stage_includes() {
}
autotools_stage_all() {
- if [ "${INHIBIT_AUTO_STAGE}" != "1" ]
+ if [ "${INHIBIT_AUTO_STAGE}" = "1" ]
then
- rm -rf ${STAGE_TEMP}
- mkdir -p ${STAGE_TEMP}
- oe_runmake DESTDIR="${STAGE_TEMP}" install
- cp -pPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
- cp -pPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
- rm -rf ${STAGE_TEMP}
+ return
+ fi
+ rm -rf ${STAGE_TEMP}
+ mkdir -p ${STAGE_TEMP}
+ oe_runmake DESTDIR="${STAGE_TEMP}" install
+ if [ -d ${STAGE_TEMP}/${includedir} ]; then
+ cp -fpPR ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
+ fi
+ if [ -d ${STAGE_TEMP}/${libdir} ]
+ then
+ for i in ${STAGE_TEMP}/${libdir}/*.la
+ do
+ if [ ! -f "$i" ]; then
+ cp -fpPR ${STAGE_TEMP}/${libdir}/* ${STAGING_LIBDIR}
+ break
+ fi
+ oe_libinstall -so $(basename $i .la) ${STAGING_LIBDIR}
+ done
+ fi
+ if [ -d ${STAGE_TEMP}/${datadir}/aclocal ]; then
+ install -d ${STAGING_DATADIR}/aclocal
+ cp -fpPR ${STAGE_TEMP}/${datadir}/aclocal/* ${STAGING_DATADIR}/aclocal
fi
+ rm -rf ${STAGE_TEMP}
}
EXPORT_FUNCTIONS do_configure do_install