1 | # -*- 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 |
---|
2 | # kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4; |
---|
3 | # $Id:$ |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | PortGroup perl5 1.0 |
---|
8 | |
---|
9 | github.setup tycho cpuid 1.4.2 |
---|
10 | github.tarball_from archive |
---|
11 | |
---|
12 | categories sysutils |
---|
13 | description A simple CPUID decoder/dumper for x86/x86_64 |
---|
14 | long_description "cpuid" is a very simple C program, designed to dump and extract information \ |
---|
15 | from the x86 CPUID instruction.\ |
---|
16 | cpuid is capable of dumping all CPUID leaves (except any unknown leaves which \ |
---|
17 | require special ECX values to dump all information). cpuid can only decode \ |
---|
18 | certain leaves, but this functionality will be expanded as the CPUID \ |
---|
19 | specifications provided by AMD and Intel change. |
---|
20 | |
---|
21 | homepage http://github.com/tycho/cpuid |
---|
22 | |
---|
23 | maintainers gmail.com:rjvbertin openmaintainer |
---|
24 | license ISC |
---|
25 | platforms darwin |
---|
26 | supported_archs i386 x86_64 |
---|
27 | installs_libs no |
---|
28 | |
---|
29 | checksums rmd160 f2b8132bd2a7444a562e3a1f609bdfc7ab42dc85 \ |
---|
30 | sha256 bc0e7989a9039286f948f705529b3fa39e7864c9e179834b344f862c66920a12 |
---|
31 | |
---|
32 | depends_build port:p${perl5.major}-pathtools \ |
---|
33 | port:p${perl5.major}-scalar-list-utils |
---|
34 | |
---|
35 | patchfiles-append patch-makefile.diff |
---|
36 | |
---|
37 | configure { |
---|
38 | # no configure script, just a few changes that need to be made to the Makefile |
---|
39 | # for it to be configured correctly. Doing these reinplaces in configure{} instead |
---|
40 | # of in post-patch{} maintains support for +universal. |
---|
41 | # reinplace "s|CC := gcc|CC := ${configure.cc}|g" ${worksrcpath}/GNUmakefile |
---|
42 | reinplace "s|-Os|${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]|g" ${worksrcpath}/GNUmakefile |
---|
43 | reinplace "s|LDFLAGS := -lm|LDFLAGS := -lm ${configure.ldflags} [get_canonical_archflags ld]|g" ${worksrcpath}/GNUmakefile |
---|
44 | reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/GNUmakefile |
---|
45 | } |
---|
46 | |
---|
47 | build.args-append CC=${configure.cc} LD=${configure.cc} V=1 |
---|