summaryrefslogtreecommitdiffstats
path: root/flex/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-29 10:16:05 +0100
committerLukc <lukc@upyum.com>2010-12-29 10:16:05 +0100
commit804c8b8e08930af7d14c8477e8026d281692314f (patch)
treebb18f9bace51028ce52bea9a1c491fbdcbe42b34 /flex/Pkgfile
parentedde6db7247c895815c744429afddd83e7b6f19e (diff)
downloaddevel-804c8b8e08930af7d14c8477e8026d281692314f.tar.gz
devel-804c8b8e08930af7d14c8477e8026d281692314f.tar.bz2
devel-804c8b8e08930af7d14c8477e8026d281692314f.tar.xz
devel-804c8b8e08930af7d14c8477e8026d281692314f.zip
Recette de flex mise à jour en aveugle. \o/
* La compilation croisée pour x86_64 a échoué…
Diffstat (limited to 'flex/Pkgfile')
-rw-r--r--flex/Pkgfile11
1 files 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
}