SUMMARY="The Jamfile Administrator"
DESCRIPTION="
The JamMin manages jamfiles, because they are most important to the user, \
as they declare the targets that should be built. Jamfiles are also \
used for organizing targets - each Jamfile is a separate project that can \
be built independently from the other projects."
HOMEPAGE="https://github.com/HaikuArchives/JamMin"
COPYRIGHT="2003 Guido Casiraghi"
LICENSE="MIT"
REVISION="3"
srcGitRev="85ce20ccc0da007443cc489f65b26b75c876d442"
SOURCE_URI="https://github.com/HaikuArchives/JamMin/archive/85ce20ccc0da007443cc489f65b26b75c876d442.tar.gz"
CHECKSUM_SHA256="b3464c6372c342ff45c2e3134cc25e1a0209a8318a03f6e8e851ec8e5699e9e0"
SOURCE_DIR="JamMin-$srcGitRev"

ARCHITECTURES="!all x86_gcc2"

PROVIDES="
	jammin = $portVersion
	app:JamMin = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd source
	make OBJ_DIR=objects \
		BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $appsDir
	cp source/objects/JamApp $appsDir
	addAppDeskbarSymlink $appsDir/JamApp
}
