54 lines
1.4 KiB
Bash
54 lines
1.4 KiB
Bash
SUMMARY="GNU perfect hash function generator"
|
|
DESCRIPTION="
|
|
GNU gperf is a perfect hash function generator. For a given list of strings, \
|
|
it produces a hash function and hash table, in form of C or C++ code, for \
|
|
looking up a value depending on the input string. The hash function is \
|
|
perfect, which means that the hash table has no collisions, and the hash table \
|
|
lookup needs a single string comparison only.
|
|
GNU gperf is highly customizable. There are options for generating C or C++ \
|
|
code, for emitting switch statements or nested ifs instead of a hash table, \
|
|
and for tuning the algorithm employed by gperf.
|
|
Online Manual is available at www.gnu.org/software/gperf/manual/gperf.html"
|
|
HOMEPAGE="http://www.gnu.org/software/gperf/"
|
|
COPYRIGHT="1989-1998, 2000-2004, 2006-2009 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="http://ftp.gnu.org/pub/gnu/gperf/gperf-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="588546b945bba4b70b6a3a616e80b4ab466e3f33024a352fc2198112cdbb3ae2"
|
|
PATCHES="gperf-$portVersion.patch"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
gperf = $portVersion compat >= 3
|
|
cmd:gperf = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:awk
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:make
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# touch documentation to avoid attempts at rebuilding it (which will fail)
|
|
touch doc/*.{pdf,ps}
|
|
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|