SUMMARY="Build tool, replacement for make"
DESCRIPTION="
Jam is a small open-source build tool that can be used as a replacement for \
Make. Even though Jam is a lot simpler to use than Make, it is far more \
powerful and easy to master. Its design is sufficiently clear to allow any \
average programmer to extend it with advanced features at will.

The main differences between Jam and Make are as follows:
- Jam uses ‘Jamfiles’ instead of ‘Makefiles’.
- Jamfiles do not normally contain toolset-specific rules or actions. They are \
thus portable among distinct compilers.
- Jamfiles are a lot simpler than Makefiles to write and understand, while \
providing the same functionality, and much, much more.
"
HOMEPAGE="http://www.perforce.com/jam/jam.html"
LICENSE="Jam"
COPYRIGHT="1993-2003 Christopher Seiwald"
srcGitRev="278de7bc9243876c2e08f8d6a243d510c5000462"
SOURCE_URI="https://github.com/haiku/buildtools/archive/$srcGitRev.tar.gz"
SOURCE_FILENAME="$portVersionedName.tar.gz"
CHECKSUM_SHA256="d9238f91caea1b6989b3331685c3713ab4dde50e1b0b6ab8c254047d4849186f"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"

PROVIDES="
	jam = $portVersion
	cmd:jam = $portVersion compat >= 2.5
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:make
	cmd:ld
	"

SOURCE_DIR="buildtools-$srcGitRev/jam"

BUILD()
{
	make
}

INSTALL()
{
	mkdir -p "$binDir"
	cp bin.haikux86/jam "$binDir"

	mkdir -p "$docDir"
	cp Jam.html Jambase.html Jamfile.html README* "$docDir"
}
