CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
e2fsprogs: updated to 1.42.13 and updated mandir
[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
b751b192 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
4c60cfdc 5# Depends on:
6dca1d21
JB
6
7name=flex
5acf0154 8version=2.5.39
237e9a63
VM
9release=1
10source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.bz2)
6dca1d21
JB
11
12build() {
13 cd $name-$version
237e9a63 14
6dca1d21
JB
15 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
16 echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
237e9a63 17
6dca1d21
JB
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
237e9a63 21 --mandir=/usr/man \
6dca1d21
JB
22 --disable-nls \
23 --cache-file=config.cache
237e9a63 24
6dca1d21
JB
25 make
26 make DESTDIR=$PKG install
237e9a63 27
6dca1d21
JB
28 ln -sf flex $PKG/usr/bin/lex
29 ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
237e9a63
VM
30
31 rm -rf $PKG/usr/share
6dca1d21 32}