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"
SRC_URI="git://github.com/HaikuArchives/BinaryClock#5d04da1137"
REVISION="2"
LICENSE="GNU GPL v2"
COPYRIGHT="2000 David Enderson"

ARCHITECTURES="x86_gcc2 !x86 !x86_64"

PROVIDES="
	app:binary_clock = $portVersion
	binary_clock = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

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

USER_SETTINGS_FILES="
	settings/BinaryClock_2.xx
	"

BUILD()
{
	cd Application
	g++ -o BinaryClock *.cpp -lbe -ltranslation
	xres -o BinaryClock BinaryClock.rsrc
	mimeset -f BinaryClock
}

INSTALL()
{
	mkdir -p $appsDir	
	cp Application/BinaryClock $appsDir
	addAppDeskbarSymlink $appsDir/BinaryClock "Binary Clock"
}
