SUMMARY="A video editor for Haiku"
DESCRIPTION="UltraDV is a full-featured non-linear video editing application \
created by Mediapede Inc in 1998. Features include 8 tracks of video, video \
capture, audio capture, transitions, real-time preview, and much more. The \
goal of this project is to complete the port to Haiku, and also provide a \
showcase for the awesomeness of the Haiku media server."
HOMEPAGE="https://github.com/Barrett17/UltraDV"
COPYRIGHT="1998-2017 UltraDV Project"
LICENSE="MIT"
REVISION="5"
srcGitRev="2a27d23d6924fdcd12d2d73fe50b9d3edb573b75"
SOURCE_URI="https://github.com/Barrett17/UltraDV/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="a8db17369ca1aebeb2897c838c0c939295a6a0c59525a5c54904cd61b54c8160"
SOURCE_DIR="UltraDV-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	ultradv = $portVersion
	app:UltraDV = $portVersion
	"
REQUIRES="
	haiku
	cmd:grep
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:jam
	cmd:ld
	cmd:which
	"

BUILD()
{
	# not an autotools configure
	./configure --prefix=$prefix
	jam $jobArgs
}

INSTALL()
{
	install -d $appsDir
	install -t $appsDir generated/distro-haiku-x86-*-debug/UltraDV
	addAppDeskbarSymlink $appsDir/UltraDV
}
