SUMMARY="A screensaver app"
DESCRIPTION="BrainWash is a ScreenSaver module, which - with the aid of subtle \
color cycling - tries to intensify the effects of hallucinogene narcotics. \
This software is provided 'as is' with no warranties of any kind. \
Use it at your own risk."
HOMEPAGE="https://github.com/HaikuArchives/BrainWash"
COPYRIGHT="1999-2005 Ingo Weinhold und Stephan Aßmus GbR YellowBites"
LICENSE="MIT"
REVISION="1"
srcGitRev="9408bbbb4f3d41b57dcf80c135a3e177e6f8f309"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="80224711fd0740766e5e890e7aa778ca91ad1ace74abed2c64cd43649e9def49"
SOURCE_DIR="BrainWash-$srcGitRev"

ARCHITECTURES="!all"
SECONDARY_ARCHITECTURES="!x86"

PROVIDES="
	BrainWash$secondaryArchSuffix = $portVersion
	addon:BrainWash$secondaryArchSuffix
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $addOnDir/Screen\ Savers
	cp -a objects/BrainWash $addOnDir/Screen\ Savers
}
