SUMMARY="An autoconf replacement"
DESCRIPTION="
ACR tries to replace autoconf functionality generating a full-compatible \
'configure' script (runtime flags). But using shell-script instead of m4. \
This means that ACR is faster, smaller and easy to use.
"
HOMEPAGE="https://github.com/radare/acr"
COPYRIGHT="2005-2012 pancake"
LICENSE="GNU GPL v2"
SOURCE_URI="git+https://github.com/radare/acr.git#e6043960ab9fc664f9e30943bd36f1b5e0904aa9"
#CHECKSUM_SHA256=""
REVISION="1"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64 ?arm"

PROVIDES="
	acr = $portVersion compat >= 0.9.9
	cmd:acr = $portVersion compat >= 0.9.9
	cmd:acr_cat = $portVersion compat >= 0.9.9
	cmd:acr_install = $portVersion compat >= 0.9.9
	cmd:acr_sh = $portVersion compat >= 0.9.9
	cmd:amr = $portVersion compat >= 0.9.9
	"
REQUIRES="
	haiku
	cmd:awk
	coreutils
	diffutils
	cmd:getopt
	cmd:perl >= 5
	cmd:sed
	cmd:sh
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:awk
	cmd:getopt
	cmd:make
	cmd:sed
	"

#BUILD_PACKAGE_ACTIVATION_PHASE=INSTALL

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

INSTALL()
{
	make install
}

TEST()
{
	make test
}
