SUMMARY="A native GUI for RDesktop"
DESCRIPTION="BeRDP is a project dedicated to bringing the RDP protocol to \
the BeOS platform utilizing the rdesktop project. RDP is a protocol designed \
by Microsoft to remotely administer / run a session on Windows 2000/2003 \
Servers / Windows XP Professional workstations."
HOMEPAGE="https://github.com/HaikuArchives/BeRDP/"
COPYRIGHT="2003-2004 Sikos
	2013-2019 HaikuArchives team"
LICENSE="BSD (4-clause)"
REVISION="3"
srcGitRev="31226620785b32999840c8cf1073d98ce51ae131"
SOURCE_URI="https://github.com/HaikuArchives/BeRDP/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="6dc21de99557b34cea6e2b681c9f0343d47c0a8a8042eb80b29dacee2c028471"
SOURCE_DIR="BeRDP-$srcGitRev"

ARCHITECTURES="?all"

PROVIDES="
	berdp = $portVersion
	app:BeRDP = $portVersion
	"
REQUIRES="
	haiku
	cmd:rdesktop
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects -C Source
}

INSTALL()
{
	mkdir -p $appsDir
	cp Source/objects/BeRDP $appsDir
	addAppDeskbarSymlink $appsDir/BeRDP
}
