CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
filesystem: removed lib32 directories
[crossrootfs.git] / flex / Pkgfile
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, devel at crux-arm dot nu
5 # Depends on:
6
7 name=flex
8 version=2.5.39
9 release=2
10 source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.bz2)
11
12 build() {
13 cd $name-$version
14
15 echo "ac_cv_func_malloc_0_nonnull=yes" > config.cache
16 echo "ac_cv_func_realloc_0_nonnull=yes" >> config.cache
17
18 ./configure --build=$CHOST \
19 --host=$CTARGET \
20 --prefix=/usr \
21 --disable-nls \
22 --cache-file=config.cache
23
24 make
25 make DESTDIR=$PKG install
26
27 ln -sf flex $PKG/usr/bin/lex
28 ln -sf flex.1.gz $PKG/usr/share/man/man1/lex.1.gz
29
30 rm -r $PKG/usr/share/{info,doc}
31 }