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.
"
LICENSE="GNU GPL v2"
COPYRIGHT="
	2006-2008 David Ingram
	2010 Johannes Buchner
	"
HOMEPAGE="https://github.com/JohannesBuchner/multitalk"
REVISION="1"
ARCHITECTURES="x86_gcc2"

SOURCE_URI="https://github.com/JohannesBuchner/multitalk/archive/master.zip"
CHECKSUM_SHA256="e7b582f5c97905492a6a6554c6087d9d00879b22a42afbe97445a2b3f8ce60e1"
SOURCE_DIR="multitalk-master"
PATCHES="multitalk-$portVersion.patchset"

PROVIDES="
	multitalk = $portVersion
	cmd:multitalk
	"
REQUIRES="
	haiku
	sdl_gfx
	sdl_image
	sdl_ttf
	libsdl
	lib:libstdc++
	"
BUILD_REQUIRES="
	devel:sdl_gfx
	devel:sdl_image
	devel:sdl_ttf
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:g++
	cmd:make
	cmd:sdl_config
	"

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

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

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