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
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=1
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 --mandir=/usr/man \
22 --disable-nls \
23 --cache-file=config.cache
24
25 make
26 make DESTDIR=$PKG install
27
28 ln -sf flex $PKG/usr/bin/lex
29 ln -sf flex.1.gz $PKG/usr/man/man1/lex.1.gz
30
31 rm -rf $PKG/usr/share
32 }