CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Merged changes from noeabi (72cbd18e791bd2edff0e8d23873136187f0cd936)
[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
83e7e2d0 4# Arch Maintainer: CRUX-ARM System Team, devel@crux-arm.nu
4c60cfdc 5# Depends on:
6dca1d21
JB
6
7name=flex
8version=2.5.35
9release=1
10source=(http://dl.sourceforge.net/sourceforge/flex/$name-$version.tar.bz2)
11
12build() {
13 cd $name-$version
14 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
15 echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
16 ./configure --build=$CHOST \
17 --host=$CTARGET \
18 --prefix=/usr \
19 --disable-nls \
20 --cache-file=config.cache
21 make
22 make DESTDIR=$PKG install
23 ln -sf flex $PKG/usr/bin/lex
24 ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
25 rm -rf $PKG/usr/info
26}