SUMMARY="An open source media compositing tool"
DESCRIPTION="Clockwerk is an open source media compositing tool for the \
Haiku platform. It had been in development from January 2006 to July 2008 \
by Mindwork (www.mindwork.de) as one of the main in-house components of \
an application suite to realize distributed multimedia playback on \
Haiku client machines."

HOMEPAGE="https://github.com/stippi/Clockwerk"
SOURCE_URI="git+https://github.com/stippi/Clockwerk.git#6eab4202c857c7dc6f21b6e3262cff0b503acb0e"

REVISION="3"

LICENSE="GNU GPL v2"
COPYRIGHT="
	2001-2009 Stephan Aßmus
	2000-2006 Ingo Weinhold
	"
	
ARCHITECTURES="x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"

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

USER_SETTINGS_FILES="
	settings/mindwork-m3 directory
	"

BUILD()
{
	jam	-q $jobArgs
}

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