SUMMARY="A native editor for vector/bitmap graphics"
DESCRIPTION="WonderBrush is an editor for bitmap and vector graphics.

The main window holds any number of documents, which are called Canvas. Each \
canvas can have any number of Layers, arranged as a list. Each layer \
represents an individual bitmap in the size of the canvas. Depending on each \
layer's blending mode, they are composed on top of each other to form the \
final canvas bitmap.

Each layer can contain any number of Objects, which are created with \
WonderBrush's tools, e.g. brush strokes, shapes, text objects or filters. Each \
object has a set of properties which define the unique appearance of the \
object on the layer.
At any time, it is possible to reorder the layers, or edit the objects they \
contain. This could be called non-linear editing. It is also possible to \
change most of an object's properties later on. This could be called \
non-destructive editing, because adding another object (like a filter) does \
not actually destroy any pixel data.

An open WonderBrush document references up to two files: one is a file in some \
export format (e.g. an SVG document, some bitmap format like PNG or JPEG, \
etc.). The other is a full-featured project file.

The canvas resolution can be changed at any time, with all objects being \
resized accordingly. This makes WonderBrush a kind of hybrid of bitmap and \
vector editor."
HOMEPAGE="https://github.com/stippi/WonderBrush-v3"
COPYRIGHT="2005-2021, Stephan Aßmus und Ingo Weinhold GbR"
LICENSE="WonderBrush"
REVISION="1"
srcGitRev="7f88c3e4fbe0bca9ef2df7a92d44789877edfe1e"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
SOURCE_DIR="WonderBrush-v3-$srcGitRev"
CHECKSUM_SHA256="b13a8b6dba08849782df629105037f9a74c34a87c6588d70a548ef4e99b70236"

ARCHITECTURES="!all"

USER_SETTINGS_FILES="
	settings/WonderBrush directory
	"

PROVIDES="
	wonderbrush3 = $portVersion compat >= 3
	app:WonderBrush3 = $portVersion compat >= 3
	"
REQUIRES="
	haiku
	lib:libfreetype
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libfreetype
	"
BUILD_PREREQUIRES="
	haiku
	cmd:gcc
	cmd:jam
	"

BUILD()
{
	jam $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/WonderBrush3
	cp generated/distro-haiku/* $appsDir/WonderBrush3
	cd "$_" && mv WonderBrush WonderBrush3
	addAppDeskbarSymlink $appsDir/WonderBrush3/WonderBrush3
}
