CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Imported core-cross ports from 2.5
[crossrootfs.git] / flex / Pkgfile
CommitLineData
6dca1d21
JB
1# Description: Fast Lexical Analyzer Generator
2# URL: http://flex.sourceforge.net/
3# Maintainer: CRUX System Team, core-ports at crux dot nu
4# Arch Maintainer: CRUX-ARM System Team, crux-arm at mikeux dot dyndns dot org
5
6name=flex
7version=2.5.35
8release=1
9source=(http://dl.sourceforge.net/sourceforge/flex/$name-$version.tar.bz2)
10
11build() {
12 cd $name-$version
13 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
14 echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
15 ./configure --build=$CHOST \
16 --host=$CTARGET \
17 --prefix=/usr \
18 --disable-nls \
19 --cache-file=config.cache
20 make
21 make DESTDIR=$PKG install
22 ln -sf flex $PKG/usr/bin/lex
23 ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
24 rm -rf $PKG/usr/info
25}