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

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

ccache: update to version 3.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
RevLine 
[20267]1# $Id: Portfile 72340 2010-10-11 08:39:40Z stromnov@macports.org $
[2122]2
[28880]3PortSystem      1.0
[27973]4
[28880]5name            ccache
[72340]6version         3.1
[28880]7categories      devel
[71514]8maintainers     landonf openmaintainer
[28880]9description     object-file caching compiler wrapper
[27973]10
[9821]11long_description \
[28880]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.
[1099]16
[28880]17homepage        http://ccache.samba.org/
18platforms       darwin freebsd
19master_sites    http://samba.org/ftp/ccache/
[9821]20
[72340]21checksums       md5     fb5e321d82dbb438347289f24ce6e46c \
22                sha1    7e81c7269410dce34468b9393f3d2df6d577af9c \
23                rmd160  23174507b4ee9ffedda19322637398de15ada0db
[27973]24
[64755]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
[28880]32configure.args  --mandir=${prefix}/share/man
[27973]33
[71514]34set symlinks_dir    ${prefix}/libexec/ccache
35
[9821]36post-destroot {
[71514]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    }
[1099]47}
[71514]48
[71539]49notes "The ccache symlinks are installed in ${symlinks_dir}"
Note: See TracBrowser for help on using the repository browser.