SUMMARY="MkDepend for BeOS"
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"
LICENSE="MIT"
COPYRIGHT="1995-2001 Lars Düning. All Rights Reserved"
#SOURCE_URI="http://ports.haiku-files.org/export/1051/haikuports/trunk/haiku-apps/mkdepend/source/mkdepend-1.7.zip"
SOURCE_URI="source/mkdepend-1.7.zip"
CHECKSUM_MD5="d4ec4fea9dd9b7292b52d780c8ee3387"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	mkdepend = $portVersion
	cmd:mkdepend = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:ld
	"


BUILD()
{
	rc mkdepend.rdef
	xres mkdepend.rsrc
	gcc args.c getargs.c main.c nodes.c reader.c util.c -o mkdepend
}

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