SUMMARY="A Haiku diagramming application like Microsoft Visio"
DESCRIPTION="ProjectConceptor is a modular application for Haiku and BeOS \
designed to view, edit and process information which can be represented by a \
graph structure."
APP="ProjectConceptor"
HOMEPAGE="https://github.com/Paradoxianer/$APP"
COPYRIGHT="2018 Matthias \“Paradoxer\” Lindner
	2000-2002 Lee Thomason
	1991-2000 Be Incorporated"
LICENSE="BSD (3-clause)
	MIT
	Open Tracker License
	Zlib"
REVISION="2"
srcGitRev="4bcf8c73c05213322de347f08a2db6696d97a005"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="7b80d51bb6ab1ec2a3f22290b3e35dfcc9f667c652ca5c01eb826d86a21abb52"
SOURCE_FILENAME="$APP-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="$APP-$srcGitRev"

ARCHITECTURES="!all x86_gcc2 ?x86"

PROVIDES="
	projectconceptor = $portVersion
	app:$APP = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:find
	cmd:g++
	cmd:make
	"

defineDebugInfoPackage projectconceptor \
	"$appsDir"/$APP/Plugins/AddAttribute \
	"$appsDir"/$APP/Plugins/ChangeValue \
	"$appsDir"/$APP/Plugins/Copy \
	"$appsDir"/$APP/Plugins/Delete \
	"$appsDir"/$APP/Plugins/Find \
	"$appsDir"/$APP/Plugins/FreeMindTranslator \
	"$appsDir"/$APP/Plugins/GraphEditor \
	"$appsDir"/$APP/Plugins/Group \
	"$appsDir"/$APP/Plugins/Insert \
	"$appsDir"/$APP/Plugins/Move \
	"$appsDir"/$APP/Plugins/NavigatorEditor \
	"$appsDir"/$APP/Plugins/Paste \
	"$appsDir"/$APP/Plugins/ProjectConceptorTranslator \
	"$appsDir"/$APP/Plugins/RemoveAttribute \
	"$appsDir"/$APP/Plugins/Resize \
	"$appsDir"/$APP/Plugins/Select \
	"$appsDir"/$APP/ProjectConceptor

BUILD()
{
	make -C src OBJ_DIR=objects app plugins
}

INSTALL()
{
	install -d $appsDir/$APP/Plugins
	install src/app/$APP $appsDir/$APP
	addAppDeskbarSymlink $appsDir/$APP/$APP

	cd src/plugins
	install $(find * -mindepth 2 -type f -executable) $appsDir/$APP/Plugins
}
