SUMMARY="An interface to the commandline program gnuplot"
DESCRIPTION="HaikuPlot is an application that provides an easy-to-use \
GUI interface to gnuplot, a popular commandline plotting tool."
HOMEPAGE="https://github.com/HaikuArchives/HaikuPlot"
COPYRIGHT="2015 Vale Tolpegin"
LICENSE="MIT"
REVISION="3"
SOURCE_URI="https://github.com/HaikuArchives/HaikuPlot/archive/6def19ed31aeed80ab9fbcd0abe70de975598de2.tar.gz"
CHECKSUM_SHA256="66f67cfdf45bb60e5ba5fca36c324ec36ec3c86c634bb76d27542a86f1d9e1c8"
SOURCE_DIR="HaikuPlot-6def19ed31aeed80ab9fbcd0abe70de975598de2"

ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	haikuplot = $portVersion
	app:HaikuPlot = $portVersion
	"
REQUIRES="
	haiku
	cmd:gnuplot
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/HaikuPlot
	cp -r HaikuPlot/HaikuPlot $appsDir/HaikuPlot
	cp -r demo $appsDir/HaikuPlot/demo
	addAppDeskbarSymlink $appsDir/HaikuPlot/HaikuPlot
}
