# -*- 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 # $Id: Portfile 137245 2015-06-07 12:05:28Z khindenburg@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup perl5 1.0 github.setup tycho cpuid 1.4.2 categories sysutils description A simple CPUID decoder/dumper for x86/x86_64 long_description "cpuid" is a very simple C program, designed to dump and extract information \ from the x86 CPUID instruction.\ cpuid is capable of dumping all CPUID leaves (except any unknown leaves which \ require special ECX values to dump all information). cpuid can only decode \ certain leaves, but this functionality will be expanded as the CPUID \ specifications provided by AMD and Intel change. maintainers gmail.com:rjvbertin openmaintainer license ISC platforms darwin supported_archs i386 x86_64 installs_libs no checksums rmd160 6c3ec2c066b244b98a7749c641932f0a919ee8a4 \ sha256 1323d75dd0e57b448d08334a3c9ef6942d360b8f380820a63dca6a297bd957e3 depends_build port:p${perl5.major}-pathtools \ port:p${perl5.major}-scalar-list-utils patchfiles-append patch-makefile.diff configure { # no configure script, just a few changes that need to be made to the Makefile # for it to be configured correctly. Doing these reinplaces in configure{} instead # of in post-patch{} maintains support for +universal. reinplace "s|-Os|${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/GNUmakefile reinplace "s|LDFLAGS := -lm|LDFLAGS := -lm ${configure.ldflags} [get_canonical_archflags ld]|g" ${worksrcpath}/GNUmakefile reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/GNUmakefile } build.args-append CC=${configure.cc} LD=${configure.cc} V=1