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 | # $Id: Portfile 74264 2010-12-09 15:42:06Z stromnov@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name ccache |
---|
7 | version 3.1.4 |
---|
8 | categories devel |
---|
9 | platforms darwin freebsd |
---|
10 | |
---|
11 | maintainers landonf openmaintainer |
---|
12 | |
---|
13 | description object-file caching compiler wrapper |
---|
14 | |
---|
15 | long_description \ |
---|
16 | ccache is a compiler cache. It acts as a caching pre-processor to C/C++ \ |
---|
17 | compilers, using the -E compiler switch and a hash to detect when a \ |
---|
18 | compilation can be satisfied from cache. This often results in a 5 to 10 \ |
---|
19 | times speedup in common compilations. |
---|
20 | |
---|
21 | homepage http://ccache.samba.org/ |
---|
22 | master_sites http://samba.org/ftp/ccache/ |
---|
23 | checksums md5 d43a8fbe83767978098ba7f8ee25d3d1 \ |
---|
24 | sha1 caf5b3368419c36b3090b00ad2e03cd3f52f0df7 \ |
---|
25 | rmd160 b2988fb7316419de9326513cc7c64100132bb6bc |
---|
26 | |
---|
27 | |
---|
28 | configure.args --mandir=${prefix}/share/man |
---|
29 | |
---|
30 | set symlinks_dir ${prefix}/libexec/ccache |
---|
31 | |
---|
32 | post-destroot { |
---|
33 | file mkdir ${destroot}${symlinks_dir} |
---|
34 | |
---|
35 | foreach {bin} { |
---|
36 | cc |
---|
37 | gcc gcc2 gcc3 gcc-3.3 gcc-4.0 gcc-4.2 |
---|
38 | c++ c++3 c++-3.3 c++-4.0 c++-4.2 |
---|
39 | g++ g++2 g++3 g++-3.3 g++-4.0 g++-4.2 |
---|
40 | } { |
---|
41 | ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin} |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | notes "The ccache symlinks are installed in ${symlinks_dir}" |
---|