SUMMARY="An integrated development environment (IDE)"
DESCRIPTION="Ideam is an IDE with support for C++ and Rust projects.
The editor is based on Scintilla editing component."
HOMEPAGE="https://github.com/AmosCaster/ideam"
COPYRIGHT="2017-2018 A. Mosca"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://github.com/AmosCaster/ideam/archive/ver-$portVersion.tar.gz"
CHECKSUM_SHA256="542e0cffed3c51a14ddd5be526d15eaaf5a498b9d1ac9c3b70b4ea25f1cddbd2"
SOURCE_DIR="ideam-ver-$portVersion"
PATCHES="ideam-$portVersion.patchset"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

USER_SETTINGS_FILES="
	settings/Ideam directory
	"

PROVIDES="
	ideam$secondaryArchSuffix = $portVersion
	app:Ideam = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libscintilla$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libscintilla$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
	make bindcatalogs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp -af app/Ideam $appsDir
	addAppDeskbarSymlink $appsDir/Ideam
}
