Ticket #47896: Portfile

File Portfile, 2.3 KB (added by RJVB (René Bertin), 9 years ago)
Line 
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
5PortSystem          1.0
6PortGroup           github 1.0
7PortGroup           perl5 1.0
8
9github.setup        tycho cpuid 1.4.2
10github.tarball_from archive
11
12categories          sysutils
13description         A simple CPUID decoder/dumper for x86/x86_64
14long_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
21homepage            http://github.com/tycho/cpuid
22
23maintainers         gmail.com:rjvbertin openmaintainer
24license             ISC
25platforms           darwin
26supported_archs     i386 x86_64
27installs_libs       no
28
29checksums           rmd160  f2b8132bd2a7444a562e3a1f609bdfc7ab42dc85 \
30                    sha256  bc0e7989a9039286f948f705529b3fa39e7864c9e179834b344f862c66920a12
31
32depends_build       port:p${perl5.major}-pathtools \
33                    port:p${perl5.major}-scalar-list-utils
34
35patchfiles-append   patch-makefile.diff
36
37configure {
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
47build.args-append   CC=${configure.cc} LD=${configure.cc} V=1