SUMMARY="A tiny but useful software for debugging"
DESCRIPTION="DebugMonitor is a small but useful software that can improve \
the reliability and maintainability of your code. This software comes with \
a DebugMonitor and a DebugClient library. To use, simply include the client \
library in your app's Makefile, rebuild your app, run DebugMonitor, and then \
start up your app. The main window should be clickable, and once you do so, a \
the DebugMonitor window will appear and should record actions performed."
HOMEPAGE="https://github.com/HaikuArchives/DebugMonitor"
COPYRIGHT="1999 Alister Lee"
LICENSE="MIT"
REVISION="1"
srcGitRev="fe99167d0c0b7a2cf6f9d2d90f25c8a9073efc7d"
SOURCE_URI="https://github.com/HaikuArchives/DebugMonitor/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="3e2e8920ccdde3e4c890431ebe8df358d7dd102109543356f10b8ea600444ea3"
SOURCE_FILENAME="DebugMonitor-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="DebugMonitor-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	debugmonitor = $portVersion
	app:DebugMonitor = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make -C DebugClient  OBJ_DIR=objects
	make -C DebugMonitor OBJ_DIR=objects
	cp DebugClient/objects/DebugClient.a Scribble/
	make -C Scribble     OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/DebugMonitor/Examples
	cp Scribble/objects/Scribble $appsDir/DebugMonitor/Examples
	cp DebugMonitor/objects/DebugMonitor $appsDir/DebugMonitor
	addAppDeskbarSymlink $appsDir/DebugMonitor/DebugMonitor
}
