SUMMARY="Enhanced input methods for BeOS and Haiku"
DESCRIPTION="UniversalScroller provides scrolling by moving your mouse, \
inter-clicks, launching programs upon clicking and much more."
HOMEPAGE="https://github.com/HaikuArchives/UniversalScroller"
COPYRIGHT="2011 Christian Aistleitner"
LICENSE="GNU GPL v2"
REVISION="2"
srcGitRev="adc773725e8a91976c75dcd42faf594f536ad370"
SOURCE_URI="https://github.com/HaikuArchives/UniversalScroller/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="9eecceda968c10e6a70a8a859dff4c0d25b570b8760a4236b9fcaf52717b6bdf"
SOURCE_FILENAME="UniversalScroller-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="UniversalScroller-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	universalscroller = $portVersion
	addon:UniversalScroller = $portVersion
	app:Preferences = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make OBJ_DIR=objects dist
}

INSTALL()
{
#	ToDo: UniversalScroller needs a rocking icon
	install -d "$addOnsDir/input_server/filters"
	install -t "$addOnsDir/input_server/filters" dist/UniversalScroller
	install -d "$appsDir/UniversalScroller"
	install -t "$appsDir/UniversalScroller" dist/Preferences

	addAppDeskbarSymlink "$appsDir/UniversalScroller/Preferences"
}
