SUMMARY="Really Slick Screen Savers"
DESCRIPTION="The Really Slick Screen Savers are a set of, as the name implies,\
really slick screen savers! Originally made for Windows, these have been ported\
 to Linux and Haiku too!"
HOMEPAGE="http://reallyslick.com/screensavers/"
SOURCE_URI="http://downloads.sourceforge.net/rssavers/rssavers-0.2.src.tar.gz"
CHECKSUM_SHA256="be58390ea092ffe4ccecf827b04f5e99a1be5be12eaf5266a415fadb01ea4f24"
PATCHES="rssavers-0.2.patchset"
REVISION="1"
COPYRIGHT="1999-2010  Terence M. Welsh\
2014 Puck Meerburg (Haiku part)"
LICENSE="GNU GPL v2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PROVIDES="
	rssavers = $portVersion
	addon:Flocks = $portVersion
	addon:Flux = $portVersion
	addon:Hyperspace = $portVersion
	addon:Microcosm = $portVersion
	addon:Plasma = $portVersion
	"
REQUIRES="
	haiku
	lib:libgl
	lib:libglu
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	devel:libgl
	devel:libglu
	"
BUILD_REQUIRES="
	haiku_devel
	"

BUILD()
{
	cd src
	cd rsHaikuScreenSaver
	make
	cd ../rsMath
	make
	cd ../rsText
	make
	cd ../Rgbhsl
	make
	cd ../Implicit
	make
	
	cd ../Flocks
	make
	
	cd ../Flux
	make
	
	#cd ../Hyperspace # For some reason this won't run
	#make
	
	cd ../Microcosm
	make
	
	cd ../Plasma
	make

	cd ..
}

INSTALL()
{
	mkdir -p $addOnsDir/Screen\ Savers
	cd bin
	cp flocks flux microcosm plasma $addOnsDir/Screen\ Savers
}
