SUMMARY="Sum-It is a native spreadsheet for BeOS"
DESCRIPTION="
Sum-It is a spreadsheet for BeOS (Download BeOS for free). This is Open \
Sum-It, the open source version of Maarten Hekkelman's Sum-It application. \
Sum-It has many features, including a plug-in architecture for formulas and \
graphs. This product includes software developed by Hekkelman Programmatuur B.V.
"
LICENSE="BSD (4-clause)"
COPYRIGHT="1996-1998, 2000	Hekkelman Programmatuur B.V.  All rights reserved.
	1999-2000 Tim Vernum. All rights reserved."
HOMEPAGE="https://github.com/HaikuArchives/OpenSumIt" 
SRC_URI="git+https://github.com/HaikuArchives/OpenSumIt.git#cdab184a27"
REVISION="2"
ARCHITECTURES="!x86 x86_gcc2"

PROVIDES="
	sum_it = $portVersion
	app:sum_it = $portVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc
	cmd:flex
	cmd:bison
	"

BUILD()
{
	pushd bsl
	BE_C_COMPILER=gcc make
	PATH=`pwd`:$PATH
	popd


	pushd rez
	BE_C_COMPILER=gcc make
	PATH=`pwd`:$PATH
	popd

	cd sum-it
	BE_C_COMPILER=gcc make
}

INSTALL()
{
	mkdir -p $appsDir
	cp sum-it/OpenSum-It $appsDir/Sum-It
	addAppDeskbarSymlink $appsDir/Sum-It
}
