mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-21 19:20:08 +02:00
gperf: make recipe an actual recipe
This commit is contained in:
@@ -1,26 +1,43 @@
|
||||
DESCRIPTION="gperf"
|
||||
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"
|
||||
REVISION="2"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND=""
|
||||
CHECKSUM_MD5="c1f1db32fb6598d6a93e6e88796a8632"
|
||||
REVISION="1"
|
||||
ARCHITECTURES="x86_gcc2 ?x86"
|
||||
|
||||
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()
|
||||
{
|
||||
cd gperf-3.0.4
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--docdir=$COMMON_DOCS/doc/gperf \
|
||||
--infodir=$COMMON_DOCS/info \
|
||||
--mandir=$COMMON_DOCS/man
|
||||
make
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd gperf-3.0.4
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v3"
|
||||
COPYRIGHT="1989-1998, 2000-2004, 2006-2009 Free Software Foundation, Inc."
|
||||
|
||||
Reference in New Issue
Block a user