summaryrefslogtreecommitdiffstats
path: root/flex/Pkgfile
diff options
context:
space:
mode:
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
}