SUMMARY="Cmake GUI with Haiku Native Widgets"
DESCRIPTION="
cmake_haiku 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"
SOURCE_URI="git+https://github.com/AdrianArroyoCalle/cmake-haiku.git#a42d55b"

LICENSE="BSD (3-clause)"
COPYRIGHT="2012-2013 Adrián Arroyo Calle <adrian.arroyocalle@gmail.com>"

REVISION="1"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 ?x86"

PROVIDES="
	cmake_haiku = $portVersion
	app:CmakeHaiku = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	cmd:cmake
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:cmake
	cmd:make
	"
	
BUILD()
{
	cmake .
	make	
}

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