# $Id: Portfile 65695 2010-03-30 10:29:56Z ryandesign@macports.org $

PortSystem 1.0

name            bdump
version         3.5
categories      sysutils
platforms       darwin
maintainers     nomaintainer
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 df6d2abbd7179fddef660f1b85ff4a7d
use_zip         yes

extract.mkdir   yes

use_configure   no

build {
    system "cd ${worksrcpath} && ${configure.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}
}
