Merged in alex_striff/haikuports/avlduptree (pull request #452)

added recipe for libavlduptree
This commit is contained in:
Scott McCreary
2015-01-12 18:05:46 -08:00

View File

@@ -0,0 +1,67 @@
SUMMARY="A set of C subroutines that is useful for indexing a set of key/value \
pairs"
DESCRIPTION="
AVLDupTree is a set of C subroutines (not C++, so you can use it in drivers) \
that is useful for indexing a set of key/value pairs, using the key to find \
a matching value. The standard AVL balanced binary tree algorithm is \
enhanced to support multiple values for the same key. It is designed for \
future use in a file system to support fast attribute indexing and queries, \
but you can use it for other things. This package also includes the \
AGMSAVLTest GUI App. It tests the operations on the tree, provided by \
libavlduptree.
"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="2001 Alexander G. M. Smith"
HOMEPAGE="https://github.com/HaikuArchives/AVLDupTree"
SRC_URI="git+https://github.com/HaikuArchives/AVLDupTree.git#5969ca7e26e65857a9ade8ed6abee2fda7f1e9d9"
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"
PROVIDES="
libavlduptree$secondaryArchSuffix = $portVersion
lib:libavlduptree$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:make
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:mkdir
"
BUILD()
{
make $jobArgs
}
INSTALL()
{
mkdir -p $libDir
make install INSTALL_DIR=$libDir
# set up the develop directory correctly
prepareInstalledDevelLibs libavlduptree
# devel package
packageEntries devel $developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
libavlduptree${secondaryArchSuffix}_devel = $portVersion
devel:libavlduptree$secondaryArchSuffix = 1.0.0 compat >= 1
"
REQUIRES_devel="
libavlduptree${secondaryArchSuffix} == $portVersion base
"