CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[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
fe8f5c15 9release=2
237e9a63 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 \
21 --disable-nls \
22 --cache-file=config.cache
237e9a63 23
6dca1d21
JB
24 make
25 make DESTDIR=$PKG install
237e9a63 26
6dca1d21 27 ln -sf flex $PKG/usr/bin/lex
fe8f5c15 28 ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
237e9a63 29
fe8f5c15 30 rm -r $PKG/usr/share/{info,doc}
6dca1d21 31}