SUMMARY="An open source media compositing tool for the Haiku platform"
DESCRIPTION="Clockwerk is an Open Source media compositing tool for the Haiku platform.

It has been in development from Jan 2006 to July 2008 by Mindwork (www.mindwork.de) as one of the main in-house components of an application suit to realize distributed multimedia playback on Haiku client machines."

HOMEPAGE="https://github.com/stippi/Clockwerk"
SRC_URI="git+https://github.com/stippi/Clockwerk.git#8c3a33e"

REVISION="1"

LICENSE="GNU GPL v2"
COPYRIGHT="
	2001-2009 Stephan Aßmus <superstippi@gmx.de>
	2000-2006 Ingo Weinhold <ingo_weinhold@gmx.de>
	"
	
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	clockwerk = $portVersion
	app:clockwerk = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	devel:libfreetype$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:jam
	"

USER_SETTINGS_FILES="
	settings/mindwork-m3 directory
	"

BUILD()
{
	jam	-q
}

INSTALL()
{
	mkdir -p $appsDir
	
	jam fulldistro
	
	cd generated/distro-haiku-with-libs
	cp Clockwerk $appsDir
	
	addAppDeskbarSymlink $appsDir/Clockwerk
}
