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="https://bakefile.org/"
COPYRIGHT="2003-2018 Vaclav Slavik"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/vslavik/bakefile/releases/download/v$portVersion/bakefile-$portVersion.tar.gz"
CHECKSUM_SHA256="be8b3ded51b4c86c3ece9898e21b5ab4ed474b7d82307b289c2e02f741b5b370"
PATCHES="bakefile-$portVersion.patchset"

ARCHITECTURES="all ?x86"

PROVIDES="
	bakefile = $portVersion
	cmd:bakefile = $portVersion
	cmd:bakefile_gen = $portVersion
	cmd:bakefilize = $portVersion
	"
REQUIRES="
	haiku
	cmd:python
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libpython2.7
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoreconf
	cmd:gcc
	cmd:libtoolize
	cmd:make
	cmd:python
	cmd:swig
	"

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

INSTALL()
{
	make install
}
