SUMMARY="Native makefiles generator"
DESCRIPTION="
Bakefile is cross-platform, cross-compiler native makefiles generator. It \
takes compiler-independent description of build tasks as input and generates \
native makefile (autoconf's Makefile.in, Visual C++ project, bcc makefile etc.).
"
HOMEPAGE="http://www.bakefile.org"
SRC_URI="http://sourceforge.net/projects/bakefile/files/bakefile/0.2.8/bakefile-0.2.8.tar.gz/download"
CHECKSUM_SHA256="e262b5edff1c9126cc32de7d3fcef5b24e997156f91f5a6eeccb45d29522fd1c"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2003-2007 (c) Vaclav Slavik"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	bakefile = $portVersion
	cmd:bakefile = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	"

BUILD_PREREQUIRES="
	haiku_devel >= $haikuVersion
	cmd:python
	cmd:gcc
	cmd:make
	cmd:touch
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:libtoolize
	cmd:autoreconf
	"

PATCHES="
	bakefile-0.2.8.patch
	"

BUILD()
{
	touch ./ChangeLog
	libtoolize --force --copy --install
	automake --add-missing
	autoreconf -i
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install DESTDIR=${developDir}
}
