source: trunk/dports/devel/ccache/Portfile @ 71552

Last change on this file since 71552 was 71552, checked in by landonf@…, 10 years ago

ccache: Update to 3.0.1. Resolves issue #26493

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 71552 2010-09-16 19:06:07Z landonf@macports.org $
2
3PortSystem      1.0
4
5name            ccache
6version         3.0.1
7categories      devel
8maintainers     landonf openmaintainer
9description     object-file caching compiler wrapper
10
11long_description \
12    ccache is a compiler cache.  It acts as a caching pre-processor to C/C++ \
13    compilers, using the -E compiler switch and a hash to detect when a \
14    compilation can be satisfied from cache.  This often results in a 5 to 10 \
15    times speedup in common compilations.
16
17homepage        http://ccache.samba.org/
18platforms       darwin freebsd
19master_sites    http://samba.org/ftp/ccache/
20
21checksums       md5     15f2449899d9e8dc3aff6b86f97ab63e \
22                sha1    eaeabbcda7be97bbe5b7207523b7ed146264b713 \
23                rmd160  2f2bda605a9b5c2a5b382122f185859d4edeb318
24
25post-patch {
26    set config [open ${worksrcpath}/config.h.in a]
27    puts ${config} "#undef HAVE_PWD_H"
28    puts ${config} "#undef HAVE_GETPWUID"
29    close ${config}
30}
31
32configure.args  --mandir=${prefix}/share/man
33
34set symlinks_dir    ${prefix}/libexec/ccache
35
36post-destroot {
37    file mkdir ${destroot}${symlinks_dir}
38
39    foreach {bin} {
40            cc
41            gcc gcc2    gcc3    gcc-3.3 gcc-4.0 gcc-4.2
42            c++ c++3    c++-3.3 c++-4.0 c++-4.2
43            g++ g++2    g++3    g++-3.3 g++-4.0 g++-4.2
44    } {
45        ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
46    }
47}
48
49notes "The ccache symlinks are installed in ${symlinks_dir}"
Note: See TracBrowser for help on using the repository browser.