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

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

ccache: update to version 3.1.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 73289 2010-11-09 11:35:32Z stromnov@macports.org $
2
3PortSystem      1.0
4
5name            ccache
6version         3.1.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     b9132d867286f0184b8f6c5bb84e3865 \
22                sha1    41e385066bcaf87416aafa17115aef8523751bff \
23                rmd160  2996b6821c656640af95d1a95651b02d08dcd034
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.