From 804c8b8e08930af7d14c8477e8026d281692314f Mon Sep 17 00:00:00 2001 From: Lukc Date: Wed, 29 Dec 2010 10:16:05 +0100 Subject: Recette de flex mise à jour en aveugle. \o/ * La compilation croisée pour x86_64 a échoué… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flex/Pkgfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/flex/Pkgfile b/flex/Pkgfile index 0645a06..3da81b4 100644 --- a/flex/Pkgfile +++ b/flex/Pkgfile @@ -12,10 +12,17 @@ build () { cd $name-$version; patch -p1 -i $SRC/$name-$version-gcc44-1.patch; - ./configure --prefix=$prefix --mandir=$mandir $(use_enable nls); + ./configure \ + ${CHOST:+--build=${CHOST}} \ + ${CTARGET:+--host=${CTARGET}} \ + --prefix=$prefix \ + --mandir=$mandir \ + $(use_enable nls); make; make DESTDIR=$PKG install; ln -sf flex $PKG$prefix/bin/lex; ln -sf flex.1.gz $PKG$mandir/man1/lex.1.gz; - rm -rf $PKG$prefix/info + if ! use info; then + rm -rf $PKG$prefix/info + fi } -- cgit v1.2.3-70-g09d2