SUMMARY="A binary clock application and screensaver"
DESCRIPTION="
A Binary Clock. And yes, you really can use this to tell time! I have found it \
quite enjoyable to reprogram my brain to learn to read it at a glance. It just \
takes a little getting used to.
"
HOMEPAGE="http://github.com/HaikuArchives/BinaryClock"
SOURCE_URI="git://github.com/HaikuArchives/BinaryClock#bfefbf7f93e7a07c841fdb1162e119b0364fee85"
REVISION="2"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 David Enderson"

ARCHITECTURES="x86_gcc2 !x86 !x86_64"

PROVIDES="
	binaryclock = $portVersion
	app:BinaryClock = $portVersion	
	"

REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	cmd:ld
	"

USER_SETTINGS_FILES="
	settings/BinaryClock
	"

BUILD()
{
	cd Application
	make $jobArgs OBJ_DIR=objects

	cd ../Screensaver
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	mkdir -p $addOnsDir/Screen\ Savers/

	cp Application/objects/BinaryClock $appsDir
	addAppDeskbarSymlink $appsDir/BinaryClock "Binary Clock"

	cp Screensaver/objects/BinaryClock $addOnsDir/Screen\ Savers
}
