SUMMARY="Remote control your Haiku machines with ease!"
DESCRIPTION="
With the Remote Control app, you can control another Haiku computer also \
running the Remote Control app, no matter where it is. The app is able to just \
view what's on the screen, or also control the computer. This package contains \
the RCClient client and RCServer server. Both are to be run in the terminal."
HOMEPAGE="http://thomas.thiriez.free.fr/beos/RemoteControl/index.html"
COPYRIGHT="2001 Thomas Thiriez"
LICENSE="RemoteControl Unknown"
REVISION="4"
srcGitRev="275a5e5f9ea9baa57e54c39d6ac55ea088fbc18d"
SOURCE_URI="https://github.com/HaikuArchives/RemoteControl/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="fb6fe1a3f12381de29dcab1e17658b4dca641a06b01653c5b74b70f119141a86"
SOURCE_DIR="RemoteControl-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	remotecontrol = $portVersion
	addon:rcinputdevice = $portVersion
	addon:rcinputfilter = $portVersion
	cmd:rcclient = $portVersion
	cmd:rcserver = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	cmd:xres
	"

BUILD()
{
	cd sources
	make -C RCClient
	make -C RCInputDevice
	make -C RCInputFilter
	make -C RCServer
}

INSTALL()
{
	cd sources
	make -C RCClient install INSTALL_DIR=$binDir
	make -C RCServer install INSTALL_DIR=$binDir
	make -C RCInputDevice install INSTALL_DIR=$addOnsDir/input_server/devices
	make -C RCInputFilter install INSTALL_DIR=$addOnsDir/input_server/filters
}
