SUMMARY="A fast and flexible build system"
DESCRIPTION="Bam uses Lua to describe the build process. It's takes its \
inspiration for the script files from scons. While scons focuses on being \
100% correct when building, bam makes a few sacrifices to acquire fast. \
full and incremental build times."
HOMEPAGE="http://matricks.github.io/bam/"
COPYRIGHT="2009 Magnus Auvinen"
LICENSE="Zlib"
REVISION="2"
SOURCE_URI="http://github.com/matricks/bam/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="cc8596af3325ecb18ebd6ec2baee550e82cb7b2da19588f3f843b02e943a15a9"
PATCHES="bam-$portVersion.patchset"

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

PROVIDES="
	bam$secondaryArchSuffix = $portVersion
	cmd:bam = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:lua5.3$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	sh make_beos.sh
}

INSTALL()
{
	mkdir -p $prefix/bin
	cp bam $prefix/bin
}
