SUMMARY="Mouse and Keyboard sharing software"
DESCRIPTION="Synergy brings your computers together in one cohesive experience; its free \
and open source cross-platform software for sharing one mouse and keyboard \
between multiple computers on your desk. It works on Windows, Mac OS, Linux \
and Haiku allowing you to seamlessly move your mouse cursor between computers. \

Credits for:
- Axel Dörfler (ATKeymap)
- Stefano Ceccherini (wrapper)
- Jérôme Duval (Keymap)
- Alex Evans (uSynergy)
- Jessica Hamilton (wrapper)
- Ed Robbins (wrapper)

Usage: Create a configuration file at ~/config/settings/synergy with:
	enable = true
	server = 192.168.1.X (ip of your server)
	enableCLipboard = false (false recommended)

For more info and options in config file visit: https://github.com/unarix/synergy_haiku
"
HOMEPAGE="https://symless.com/synergy/"
COPYRIGHT="2004-2006 Jérôme Duval
	2005-2010 Axel Dörfler
	2004-2012 Haiku, Inc
	2014 Ed Robbins
	2014 Jessica Hamilton
	2015-2016 Alexander von Gluck IV
	2012 Alex Evans
	2012 Synergy Si Ltd."
LICENSE="MIT
	Zlib"
REVISION="1"
SOURCE_URI="https://github.com/unarix/synergy-haiku/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="d76d218cb1df6740a71d3aa02ecd76860ccdfb644cb0c11a85d472e1d4435550"
SOURCE_FILENAME="synergy_haiku-$portVersion.tar.gz"
SOURCE_DIR="synergy_haiku-$portVersion"

ARCHITECTURES="all ?x86_gcc2 ?x86"
SECONDARY_ARCHITECTURES="?x86_gcc2 x86"

USER_SETTINGS_FILES="settings/synergy"

PROVIDES="
	synergy_haiku$secondaryArchSuffix = $portVersion
	add_on:synergy_haiku = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	makefile_engine
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	make OBJ_DIR=objects $jobArgs
}

INSTALL()
{
	SynergyDir=$addOnsDir/input_server/devices
	mkdir -p $SynergyDir
	cp -a objects/synergy_haiku $SynergyDir
}
