SUMMARY="Automatic desktop color changer"
DESCRIPTION="
This program was inspired by the 'TaveDesktop' program by the Tave Software \
Group. I think that 'TaveDesktop' was a good idea, but I wanted to be able to \
choose my own colors, since the 'TaveDesktop' colors looks bad on an 8bpp \
display.
This program should be self-explanatory. You'll find a small Popup menu when \
clicking the small screen at the top-right corner of the window.
"
HOMEPAGE="https://github.com/HaikuArchives/NightAndDay"
COPYRIGHT="1998-1999 Jean-Baptiste M. Queru"
LICENSE="GNU GPL v2"
REVISION="7"
srcGitRev="df52d63a388bb5657fb368bee5c143a226b61c26"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="3c6e67b9a23f5cd76ce7b28cd8b2ada7f5b723871d26c0ea574fec9965e43300"
SOURCE_DIR="NightAndDay-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	nightandday = $portVersion
	app:NightAndDay = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:g++
	cmd:ld
	"

BUILD()
{
	cd src
	g++ -o NightAndDay nd.cpp -fomit-frame-pointer -ffast-math -Wall -W -Wno-multichar -Werror -D PI=3.141592 -lbe
}

INSTALL()
{
	mkdir -p $appsDir
	cp src/NightAndDay $appsDir
	mkdir -p $docDir
	cp ReadMe $docDir
	addAppDeskbarSymlink $appsDir/NightAndDay
}
