# -*- 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        NanXiao lscpu 1.2.0
revision            0
github.tarball_from archive

checksums           rmd160  b430777194dab4d99a028cc6e633b6b5507ddb09 \
                    sha256  d91a87694bd14a26b1ed8cd44d62444d93e68eaf98db6488b3abd36ad09a6bcc \
                    size    7863

categories          sysutils
maintainers         nomaintainer
license             BSD

description         lists available cpus

long_description    The ${name} utility lists all available cpus. On \
                    x86 it leverages CPUID instructions. For other \
                    architectures, the displayed information is more \
                    limited.

extract.mkdir       no
use_configure       no

variant universal {}

build.cmd           ${configure.cc}
build.target
build.args          -o ${name} \
                    [get_canonical_archflags] \
                    ${configure.cflags} \
                    ${configure.ldflags} \
                    ${name}.c

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    xinstall -m 0444 ${worksrcpath}/${name}.1 ${destroot}${prefix}/share/man/man1/
}
