SUMMARY="A screensaver displaying some text"
DESCRIPTION="Displays your text at random locations in random colors."
HOMEPAGE="https://github.com/bbjimmy/TextSaver"
COPYRIGHT="2002 Marcus Overhagen
	2004-2013 Jim Saxton, FAT ELK SOFTWARE"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/bbjimmy/TextSaver/archive/1.0.tar.gz"
CHECKSUM_SHA256="00ecaba878786fce07620946124bdb42ec52e9d1c597cc2a876355229a786747"
SOURCE_DIR="TextSaver-1.0"

ARCHITECTURES="all"

PROVIDES="
	textsaver = $portVersion
	addon:textsaver = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd source
	make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $addOnsDir/Screen\ Savers
	cd source
	cp TextSaver $addOnsDir/Screen\ Savers/TextSaver
	mkdir -p $dataDir/FatElk
	cd ..
	unzip -o fatelk
	cp "FAT ELK" $dataDir/FatElk/
	cp "Fat Elk" $dataDir/FatElk/
}
