SUMMARY="A fast compiler cache"
DESCRIPTION="
ccache is a compiler cache. It speeds up recompilation by caching previous \
compilations and detecting when same compilation is being done again. \
Supported languages are C, C++, Objective-C and Objective-C++.
"
HOMEPAGE="http://ccache.samba.org/"
SOURCE_URI="http://samba.org/ftp/ccache/ccache-$portVersion.tar.bz2"
CHECKSUM_SHA256="440f5e15141cc72d2bfff467c977020979810eb800882e3437ad1a7153cce7b2"
REVISION="1"

LICENSE="GNU GPL v3"
COPYRIGHT="2002-2007 Andrew Tridgell
	2009-2013 Joel Rosdahl"


ARCHITECTURES="x86 x86_gcc2 x86_64"

PROVIDES="
	ccache = $portVersion
	cmd:ccache
	"

REQUIRES="
	haiku
	lib:libz >= 1
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libz
	"

BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	cmd:xargs
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}
