]> pilppa.com Git - familiar-h63xx-build.git/commitdiff
autotools.bbclass: update to new version from org.openembedded.dev as of revision...
authorRene Wagner <rw@handhelds.org>
Mon, 15 May 2006 21:54:15 +0000 (23:54 +0200)
committerRene Wagner <rw@handhelds.org>
Mon, 15 May 2006 21:54:15 +0000 (23:54 +0200)
Signed-off-by: Rene Wagner <rw@handhelds.org>
org.handhelds.familiar/classes/autotools.bbclass

index 8d448ce0d3906a15c4098e4cf78a3b626e0f9eec..927e3432b715652075bed1ecd8303a574823e2ce 100644 (file)
@@ -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