1SUMMARY="GNU perfect hash function generator"
2DESCRIPTION="
3GNU gperf is a perfect hash function generator. For a given list of strings, \
4it produces a hash function and hash table, in form of C or C++ code, for \
5looking up a value depending on the input string. The hash function is \
6perfect, which means that the hash table has no collisions, and the hash table \
7lookup needs a single string comparison only.
8GNU gperf is highly customizable. There are options for generating C or C++ \
9code, for emitting switch statements or nested ifs instead of a hash table, \
10and for tuning the algorithm employed by gperf.
11Online Manual is available at www.gnu.org/software/gperf/manual/gperf.html"
12HOMEPAGE="http://www.gnu.org/software/gperf/"
13COPYRIGHT="1989-1998, 2000-2004, 2006-2009 Free Software Foundation, Inc."
14LICENSE="GNU GPL v3"
15REVISION="1"
16SOURCE_URI="http://ftp.gnu.org/pub/gnu/gperf/gperf-$portVersion.tar.gz"
17CHECKSUM_SHA256="588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2"
18PATCHES="gperf-$portVersion.patch"
19
20ARCHITECTURES="all"
21
22PROVIDES="
23	gperf = $portVersion compat >= 3
24	cmd:gperf = $portVersion compat >= 3
25	"
26REQUIRES="
27	haiku
28	"
29
30BUILD_REQUIRES="
31	haiku_devel
32	"
33BUILD_PREREQUIRES="
34	cmd:awk
35	cmd:gcc
36	cmd:ld
37	cmd:make
38	cmd:sed
39	"
40
41BUILD()
42{
43	# touch documentation to avoid attempts at rebuilding it (which will fail)
44	touch doc/*.{pdf,ps}
45
46	runConfigure ./configure
47	make $jobArgs
48}
49
50INSTALL()
51{
52	make install
53}
54