# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name            bdump
version         3.5
revision        0
checksums       rmd160  8adc9f98974f2367035b3fde886d02dcf029fe02 \
                sha256  161b47b70c69ebf8662213ff6e095f3554c28fe4575f2f4c15a9cd9d1e83e82c \
                size    9436

categories      sysutils
platforms       darwin
maintainers     nomaintainer
description     view files in 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        https://web.archive.org/web/20080513002949/http://www.braham.net/Phil/linux_utils.html
master_sites    https://web.archive.org/web/20080513002949/http://www.braham.net/Phil/Linux_utils/bdump/
distname        ${name}
use_zip         yes

extract.mkdir   yes

patchfiles      implicit.patch

use_configure   no

build {
    system -W ${worksrcpath} "${configure.cc} ${configure.cflags} ${configure.cc_archflags} bdump.c -o bdump"
}

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