summaryrefslogtreecommitdiffstats
path: root/flex/Pkgfile
blob: 3da81b4d9a5bbf763b988e1190abf2621622f585 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
description="Fast Lexical Analyzer Generator."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://flex.sourceforge.net/"
depends=()

name=flex
version=2.5.35
release=2
source=(http://downloads.sourceforge.net/project/flex/flex/$name-$version/$name-$version.tar.bz2 $name-$version-gcc44-1.patch)
build () 
{ 
	cd $name-$version;
	patch -p1 -i $SRC/$name-$version-gcc44-1.patch;
	./configure \
		${CHOST:+--build=${CHOST}} \
		${CTARGET:+--host=${CTARGET}} \
		--prefix=$prefix \
		--mandir=$mandir \
		$(use_enable nls);
	make;
	make DESTDIR=$PKG install;
	ln -sf flex $PKG$prefix/bin/lex;
	ln -sf flex.1.gz $PKG$mandir/man1/lex.1.gz;
	if ! use info; then
		rm -rf $PKG$prefix/info
	fi
}