SUMMARY="A multimedia compositing tool"
DESCRIPTION="Clockwerk has 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.
With Clockwerk you can combine audio, video and images for presentation or \
save in any audio/video format supported by Haiku."
HOMEPAGE="https://github.com/stippi/Clockwerk"
COPYRIGHT="2001-2009 Stephan Aßmus
	2000-2006 Ingo Weinhold"
LICENSE="GNU GPL v2"
REVISION="8"
srcGitRev="732bf3d995c6c8dbd5fe31e500f5dd6c3b412dd2"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="38ac55c1c4a608a7e308635a7edc8254f8d5811aa1decb0e25bf451cbb4138f6"
SOURCE_FILENAME="$portName-$srcGitRev.tar.gz"
SOURCE_DIR="Clockwerk-$srcGitRev"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/mindwork-m3 directory
	"

PROVIDES="
	clockwerk = $portVersion
	app:Clockwerk = $portVersion
	"
REQUIRES="
	haiku
	lib:libfreetype
	"

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

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
}
