SUMMARY="Flexible Filesystem Benchmark"
DESCRIPTION="The Flexible Filesystem Benchmark (FFSB) is a cross-platform \
filesystem performance measurement tool. It uses customizable profiles to \
measure of different workloads, and it supports multiple groups of threads \
across multiple filesystems."
HOMEPAGE="https://sourceforge.net/projects/ffsb"
COPYRIGHT="2001-2004 International Business Machines Corp."
LICENSE="GNU GPL v2"
REVISION="4"
SOURCE_URI="http://downloads.sourceforge.net/project/ffsb/ffsb/ffsb-6.0-rc2/ffsb-6.0-rc2.tar.bz2"
CHECKSUM_SHA256="e5867692aae8c9bfbcdc774599022289c4d89c1d90f4dd7101fb9865ac773c71"
SOURCE_DIR="ffsb-6.0-rc2"
PATCHES="ffsb-6.0_rc2.patchset"

ARCHITECTURES="all ?x86_gcc2"

PROVIDES="
	ffsb = $portVersion
	cmd:ffsb = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

BUILD()
{
	libtoolize --force --copy --install
	aclocal
	autoconf
	automake --add-missing
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	mkdir -p $docDir
	cp -af README $docDir
}
