Update for hpkg build

This commit is contained in:
Ingo Weinhold
2011-07-21 23:54:58 +00:00
parent 322ca78eb6
commit b184a15764

View File

@@ -1,33 +1,40 @@
DESCRIPTION="Flex is a tool for generating scanners."
SUMMARY="Flex is a tool for generating scanners."
DESCRIPTION="Flex is a fast lexical analyser generator. It is a tool for generating
programs that perform pattern-matching on text."
HOMEPAGE="http://flex.sourceforge.net/"
SRC_URI="http://sourceforge.net/projects/flex/files/flex/flex-2.5.35/flex-2.5.35.tar.bz2/download"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="10714e50cea54dc7a227e3eddcd44d57"
REVISION="2"
STATUS_HAIKU="stable"
PROVIDES="cmd:flex = $portVersion compat >= 2.5
lib:libfl.a = $portVersion compat >= 2.5
lib:libfl_pic.a = $portVersion compat >= 2.5"
DEPEND="haiku >= $haikuVersion"
BUILD_DEPEND="haiku-devel >= $haikuVersion
aclocal >= 1.11
autoconf >= 2.68
automake >= 1.11
gcc
ld
libtoolize >= 2.4"
SOURCE_DIR="$portVersionedName"
BUILD {
cd flex-2.5.35
rm aclocal.m4
libtoolize --force --copy --install
aclocal -I m4
autoconf
automake --add-missing --force-missing
prefix=$(finddir B_PACKAGE_LINKS_DIRECTORY)/flex-2.5.35
./configure --prefix=$prefix \
--datarootdir=$prefix/data \
--sbindir=$prefix/bin \
--includedir=$prefix/develop/headers \
--sysconfdir=$prefix/settings \
--docdir=$prefix/documentation/packages/flex \
--infodir=$prefix/documentation/info \
--mandir=$prefix/documentation/man \
./configure $configureDirArgs \
--disable-rpath --with-gnu-ld
make
make -j$jobs
}
INSTALL {
cd flex-2.5.35
make install
}
LICENSE="Flex"
COPYRIGHT="2001-2007 The Flex Project; 1990, 1997 The Regents of the University of California"