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"
SRC_URI="git://github.com/HaikuArchives/RemoteControl#c59e89e3643e4693a75e5b5456596533d068cc29"
REVISION="1"
LICENSE="RemoteControl Unknown"
COPYRIGHT="2001 Thomas Thiriez"

ARCHITECTURES="x86 x86_gcc2"


PROVIDES="
	remotecontrol = $portVersion
	cmd:rcserver = $portVersion
	cmd:rcclient = $portVersion
	addon:rcinputfilter = $portVersion
	addon:rcinputdevice = $portVersion
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:xres
	cmd:make
	cmd:mkdepend
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

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
}
