SUMMARY="Advanced key-value store"
DESCRIPTION="Redis is an open source, advanced key-value store. It is often \
referred to as a data structure server since keys can contain strings, hashes,\
 lists, sets and sorted sets."
HOMEPAGE="https://redis.io/"
COPYRIGHT="2006-2010 Salvatore Sanfilippo"
LICENSE="BSD (3-clause)"
REVISION="1"
SOURCE_URI="http://download.redis.io/releases/redis-$portVersion.tar.gz"
CHECKSUM_SHA256="6624841267e142c5d5d5be292d705f8fb6070677687c5aad1645421a936d22b3"
PATCHES="redis-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	redis$secondaryArchSuffix = $portVersion
	cmd:redis_benchmark
	cmd:redis_check_aof
	cmd:redis_check_rdb
	cmd:redis_cli
	cmd:redis_sentinel
	cmd:redis_server
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:awk
	cmd:gcc$secondaryArchSuffix
	cmd:libtoolize$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make LDFLAGS="-lnetwork -lbsd"
}

INSTALL()
{
	make INSTALL_BIN=$prefix/bin install
}
