Add recipe for WonderBrush

It downloads the zip file and repackages it. The recipe also works
around the issue that libfreetype.so and libz.so are no longer
known by those names -- that broke the previous package revision.
This commit is contained in:
Ingo Weinhold
2013-06-18 05:03:33 +02:00
parent d6abc2d21a
commit bf2f5a0308
2 changed files with 207 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
SUMMARY="Native editor for bitmap graphics"
DESCRIPTION="WonderBrush is an editor for bitmap graphics. The main window holds any number of documents, which are called Canvas. A canvas has an associated name and pixel resolution as well as some other properties. It also references up to two files, which represent it on disk, one is a file in some export format (ie. an SVG document, a flat Translator bitmap or soure code), the other a full-featured project file.
Each canvas can have any number of Layers, currently arranged as a list. Each layer represents an individual bitmap in the size of the canvas. Depending on each layers 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 by WonderBrushs tools. 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 the objects they contain. This could be called non-linear editing. It is also possible to change most of an objects properties later on. This could be called non-destructive editing, because adding another object (like a filter) does not actually destroy any pixel data."
HOMEPAGE="http://yellowbites.com/wonderbrush.html"
LICENSE="WonderBrush"
COPYRIGHT="2005, Stephan Aßmus und Ingo Weinhold GbR"
SRC_URI="http://yellowbites.com/downloads/WonderBrush-2.1.2-x86-gcc2-2013-01-02.zip#noarchive"
CHECKSUM_MD5="28e64a56946c9f5aefa40486f35ffc77"
REVISION="2"
ARCHITECTURES="x86_gcc2 !x86"
DISABLE_SOURCE_PACKAGE=yes
PROVIDES="
wonderbrush = $portVersion compat >= 2
"
REQUIRES="
haiku >= r1~alpha3_pm-1
lib:libfreetype >= 6
lib:libz >= 1
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku
coreutils
cmd:unzip
"
USER_SETTINGS_FILES="
settings/WonderBrush directory
"
SOURCE_DIR="WonderBrush"
BUILD()
{
:
}
INSTALL()
{
wonderbrushDir=$appsDir/WonderBrush
mkdir -p $appsDir
unzip -d $appsDir WonderBrush-2.1.2-x86-gcc2-2013-01-02.zip
# Hack to make libfreetype and libz available under the name WonderBrush
# has been linked against them.
ln -s $portPackageLinksDir/lib:libfreetype/lib/libfreetype.so.6 \
$wonderbrushDir/lib/libfreetype.so
ln -s $portPackageLinksDir/lib:libfreetype/lib/libz.so.1 \
$wonderbrushDir/lib/libz.so
addAppDeskbarSymlink $wonderbrushDir/WonderBrush
}