0
0
Fork 0
haikuports/dev-cpp/sparsehash/sparsehash-2.0.4.recipe

60 lines
1.2 KiB
Bash

SUMMARY="C++ associative containers"
DESCRIPTION="The Google SparseHash project contains several hash-map \
implementations in use at Google, with different performance characteristics, \
including an implementation that optimizes for space and one that optimizes \
for speed."
HOMEPAGE="https://github.com/sparsehash/sparsehash/"
COPYRIGHT="2005-2010 Google"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="https://github.com/sparsehash/sparsehash/archive/sparsehash-$portVersion.tar.gz"
CHECKSUM_SHA256="8cd1a95827dfd8270927894eb77f62b4087735cbede953884647f16c521c7e58"
SOURCE_DIR="sparsehash-sparsehash-$portVersion"
PATCHES="sparsehash-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
sparsehash$secondaryArchSuffix = $portVersion compat >= 2
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $docDir
fixPkgconfig
mv $prefix/share/doc/sparsehash*/* $docDir
rm -rf $prefix/share
}
TEST()
{
make check
}