SUMMARY="A nonlinear presentation software"
DESCRIPTION="Multitalk is an SDL based presentation program with slides laid \
on a grid instead of linearly. Slides can have any size (bigger or smaller \
than the screen, and you can move in both directions between them. Hyperlinks \
are also possible.

A PDF on how to use Multitalk and examples are found in \
/system/documentation/packages/multitalk."
HOMEPAGE="https://github.com/JohannesBuchner/multitalk"
COPYRIGHT="2006-2008 David Ingram
	2010 Johannes Buchner"
LICENSE="GNU GPL v2"
REVISION="3"
srcGitRev="5abae62da5dfe5bbdf8c77a22f2622c8fb88103c"
SOURCE_URI="https://github.com/JohannesBuchner/multitalk/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="47d250cbdea4836e8320340da47d2259a18a2fe8bc22d3054d97cd67b68b8546"
SOURCE_DIR="multitalk-$srcGitRev"
PATCHES="multitalk-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	multitalk = $portVersion
	cmd:multitalk = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_gfx
	lib:libSDL_image_1.2
	lib:libSDL_ttf_2.0
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_gfx
	devel:libSDL_image
	devel:libSDL_ttf
	"
BUILD_PREREQUIRES="
	cmd:g++
	cmd:make
	"

BUILD()
{
	make CCFLAGS="-O3 -lbe" $jobArgs
}

INSTALL()
{
	mkdir -p $binDir
	cp multitalk $binDir
	mkdir -p $dataDir/multitalk/fonts
	mkdir -p $dataDir/multitalk/gfx
	mkdir -p $dataDir/multitalk/styles
	cp -a fonts/* $dataDir/multitalk/fonts
	cp -a gfx/* $dataDir/multitalk/gfx
	cp -d styles/*.style $dataDir/multitalk/styles

	mkdir -p $docDir/examples
	cp -a examples/* $docDir/examples
	cp docs/multitalk.pdf $docDir
}
