# -*- 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
PortGroup           github 1.0

github.setup        cavaliercoder dmidecode-osx 3.1 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
name                dmidecode

categories          sysutils
supported_archs     x86_64
license             GPL-2+

maintainers         {gmail.com:ndiscreet @chicagotripp} \
                    openmaintainer

description         Tool for dumping DMI (SMBIOS) contents in human-readable format.

long_description    dmidecode reports information about your system's hardware as described in your \
    system BIOS according to the SMBIOS/DMI standard. This information typically \
    includes system manufacturer, model name, serial number, BIOS version, asset tag \
    as well as a lot of other details of varying level of interest and reliability \
    depending on the manufacturer. This will often include usage status for the CPU \
    sockets, expansion slots (e.g. AGP, PCI, ISA) and memory module slots, and the \
    list of I/O ports (e.g. serial, parallel, USB).

homepage            https://www.nongnu.org/dmidecode

checksums           rmd160  8894f017fc517076a24b0da39c92f252ddb8c91b \
                    sha256  ca45c570ad46f713be0ddd4060b0dfea01d48cb123f2997ca8f843ee0fc821c7 \
                    size    75714

dist_subdir         ${name}/${version}_1

patchfiles          patch-Makefile.diff

post-patch {
    reinplace "s|@@COMPILER@@|${configure.cc}|g" ${worksrcpath}/Makefile
}

use_configure       no

destroot.destdir    prefix=${destroot}${prefix}
