mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-19 02:00:06 +02:00
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
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"
|
|
SRC_URI="http://ftp.gnu.org/pub/gnu/gperf/gperf-3.0.4.tar.gz"
|
|
CHECKSUM_MD5="c1f1db32fb6598d6a93e6e88796a8632"
|
|
REVISION="1"
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
PATCHES="gperf-3.0.4.patch"
|
|
|
|
PROVIDES="
|
|
gperf = $portVersion compat >= 3
|
|
cmd:gperf = $portVersion compat >= 3
|
|
"
|
|
REQUIRES="
|
|
haiku >= $haikuVersion
|
|
"
|
|
BUILD_REQUIRES="
|
|
haiku_devel >= $haikuVersion
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel >= $haikuVersion
|
|
cmd:gcc
|
|
cmd:ld
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
# touch documentation to avoid attempts at rebuilding it (which will fail)
|
|
touch doc/*.{pdf,ps}
|
|
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
}
|