SUMMARY="A native GUI for CMake"
DESCRIPTION="This is a native GUI frontend for CMake with features \
like configuring a project and generating files for other build systems like \
Makefiles, Ninja etc."
HOMEPAGE="https://github.com/AdrianArroyoCalle/cmake-haiku"
COPYRIGHT="2012-2013 Adrián Arroyo Calle"
LICENSE="BSD (3-clause)"
REVISION="3"
srcGitRev="a42d55b93d8d7c1e3b19a31f4ee85f63441c4975"
SOURCE_URI="https://github.com/AdrianArroyoCalle/cmake-haiku/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="79839f164f0d1655369d5252cf31bdff14282312352c13db037bbdd6d8e68ee6"
SOURCE_DIR="cmake-haiku-$srcGitRev"

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

PROVIDES="
	cmake_haiku$secondaryArchSuffix = $portVersion
	app:CmakeHaiku = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:cmake
	"

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

BUILD()
{
	cmake .
	make
}

INSTALL()
{
	mkdir -p $appsDir
	cp cmake-gui $appsDir/CmakeHaiku

	addAppDeskbarSymlink $appsDir/CmakeHaiku
}
