SUMMARY="8052, 8035, 8048, 8041, Z80, 8080, 8085 Microcontroller Disassemblers"
DESCRIPTION="The D52 disassembler allows the user to specify memory areas as \
code, binary data (8 or 16 bit), ascii text, address tables, or data that \
should be ignored (not disassembled). You may specify such areas in an ascii \
text file.

With the use of a control file, you can, by an iterative process, get a \
progressively more meaningful disassembly by modifying the control file based \
on examination of the output of previous runs of the disassembler. You can \
also specify names for labels and symbols in the control file, resulting in a \
much more readable source file."
HOMEPAGE="http://www.brouhaha.com/~eric/software/d52"
COPYRIGHT="2007 Jeffery L. Post"
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://www.brouhaha.com/~eric/software/d52/d52v341.zip"
CHECKSUM_SHA256="784900108a4352fb439f9c9efa9458c93138ed1f05f2e41aa2faca5bc7c76e46"
SOURCE_DIR="d52v341"

ARCHITECTURES="x86_gcc2"

PROVIDES="
	d52 = $portVersion
	cmd:d48
	cmd:d52
	cmd:dz80
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make # Not multi-job safe.
}

INSTALL()
{
	mkdir -p $binDir
	cp dz80 d48 d52 $binDir
	mkdir -p $docDir
	cp *.html $docDir
}
