SUMMARY="Project generator tool"
DESCRIPTION="GENie (pronounced as Jenny) is project generator tool. It \
automagically generates project from Lua script, making applying the same \
settings for multiple projects easy.

Supported project generators:

* FASTBuild (experimental)
* GNU Makefile
* Ninja (experimental)
* Qbs / QtCreator (experimental)
* Visual Studio 2010, 2012, 2013, 2015, 2017, 2019
* XCode"
HOMEPAGE="https://github.com/bkaradzic/GENie"
COPYRIGHT="2014-2018 Branimir Karadžić
	Neil Richardson
	Mike Popoloski
	Drew Solomon
	Ted de Munnik
	Miodrag Milanović
	Brett Vickers
	Bill Freist
	Terry Hendrix II
	Ryan Juckett
	Andrew Johnson
	Johan Sköld
	Alastair Murray
	Patrick Munns
	Jan-Eric Duden
	Phil Stevens
	Stuart Carnie
	Nikolay Aleksiev
	Jon Olson
	Mike Fitzgerald
	Anders Stenberg
	Violets Hugo Amnov
	Christian Helmich"
LICENSE="BSD (3-clause)"
REVISION="1"
srcGitRev="8238251bf158bebd4d827d4d8ce3be6786ae2094"
SOURCE_URI="https://github.com/bkaradzic/GENie/archive/$srcGitRev.zip"
CHECKSUM_SHA256="f93468bce247665feebffd626d388d567e5adb9203185832f54b8cdddc1fa52e"
SOURCE_DIR="GENie-$srcGitRev"
SOURCE_FILENAME="genie-$portVersion.zip"
PATCHES="genie-$portVersion.patchset"

ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="?x86"

PROVIDES="
	genie$secondaryArchSuffix = $portVersion
	cmd:genie$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $binDir
	install -m 0755 bin/haiku/genie $binDir
}
