PortSystem          1.0

name                disktype
version             9
revision            2
categories          sysutils
license             MIT
platforms           darwin
maintainers         nomaintainer
description         Detects the content format of a disk or disk image
long_description \
   Detects the content format of a disk or disk image by checking for \
   signatures of file systems, partition tables, and boot codes.

homepage            http://disktype.sourceforge.net/
master_sites        sourceforge:project/disktype/disktype/${version}

checksums           rmd160  d4bc6c2a00225a444fc0707cf5fbd311423509f3 \
                    sha256  b6701254d88412bc5d2db869037745f65f94b900b59184157d072f35832c1111

patchfiles          patch-Makefile.diff

use_configure       no

variant universal {}
build.env-append    CC=${configure.cc} \
                    "CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
                    "LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"

destroot {
   xinstall -m 755 -s ${worksrcpath}/disktype ${destroot}${prefix}/sbin
   xinstall -m 644 ${worksrcpath}/disktype.1 \
      ${destroot}${prefix}/share/man/man1
}

livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
