mplayer_1.0pre8.bb : use some sed to clean/change the configure script
authorGraeme Gregory <dp@xora.org.uk>
Tue, 10 Oct 2006 08:07:09 +0000 (08:07 +0000)
committerGraeme Gregory <dp@xora.org.uk>
Tue, 10 Oct 2006 08:07:09 +0000 (08:07 +0000)
for cross compile. This should stop it picking up spurios /usr/* stuff.

packages/mplayer/mplayer_1.0pre8.bb

index c434525..d0a23cc 100644 (file)
@@ -173,6 +173,12 @@ do_configure() {
        cp ${WORKDIR}/vo_w100.c ${S}/libvo
        cp ${WORKDIR}/vo_w100_api.h ${S}/libvo
        cp ${WORKDIR}/vo_w100_fb.h ${S}/libvo
+
+       sed -i 's|/usr/include|${STAGING_INCDIR}|g' ${S}/configure
+       sed -i 's|/usr/lib|${STAGING_LIBDIR}|g' ${S}/configure
+       sed -i 's|/usr/\S*include[\w/]*||g' ${S}/configure
+       sed -i 's|/usr/\S*lib[\w/]*||g' ${S}/configure
+
         ./configure ${EXTRA_OECONF}
 }