# $Id: Portfile,v 1.1 2004/12/20 21:47:47 mww Exp $

PortSystem 1.0

name			bdump
version			3.4
categories		sysutils
platforms		darwin
maintainers		mww@opendarwin.org
description		allows viwing hex and ASCII formats side by side
long_description	A replacement for od for viewing binary files. Allows \
				viewing hex and ASCII formats side by side.

homepage		http://www.braham.net/Phil/linux_utils.html
master_sites	http://www.braham.net/Phil/Linux_utils/bdump/
distname		${name}
checksums		md5 8a95f50375fe9b70772b1769945e374e
use_zip			yes

worksrcdir

use_configure	no

build	{
	system "cd ${worksrcpath} && cc bdump.c -o bdump"
}

destroot	{
	xinstall -m 755 ${worksrcpath}/bdump ${destroot}${prefix}/bin
	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
}
