SUMMARY="Makefile dependency generator"
DESCRIPTION="MkDepend scans C-source files recursively for includes and writes the found \
dependency trees into an existing makefile."
HOMEPAGE="http://www.bearnip.com/lars/be/mkdepend.html"
COPYRIGHT="1995-2001 Lars Düning"
LICENSE="MIT"
REVISION="5"
SOURCE_URI="http://www.bearnip.com/ftp/be/MkDepend-17.zip"
CHECKSUM_SHA256="a5ddc9f1ed5c987ff2dd35978b0fe36e95f1f6e90e9b68cd5c35e99a60b9da88"
SOURCE_DIR="MkDepend-$portVersion"
PATCHES="mkdepend-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	mkdepend = $portVersion
	cmd:mkdepend = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make OBJ=obj
}

INSTALL()
{
	mkdir -p $binDir
	cp -a obj/mkdepend $binDir
}
