SUMMARY="Screensaver drawing interesting city-like structures"
DESCRIPTION="Substrate is a screensaver which creates interesting images from \
lines and circles. Inspired by xscreensaver's Substrate."
HOMEPAGE="https://github.com/atalax/haiku-substrate"
COPYRIGHT="2003 Jared Tarbell
	2014 Josef Gajdusek"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/atalax/haiku-substrate/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="b57e9bc57c4e57fd876d5222030a685872ddbe482464c27b119c58439bd0c948"
SOURCE_DIR="haiku-substrate-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	substrate = $portVersion
	addon:Substrate
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $addOnsDir/Screen\ Savers/
	cp objects/Substrate $addOnsDir/Screen\ Savers/
}
