# $Id: Portfile 73289 2010-11-09 11:35:32Z stromnov@macports.org $ PortSystem 1.0 name ccache version 3.1.1 categories devel maintainers landonf openmaintainer description object-file caching compiler wrapper long_description \ ccache is a compiler cache. It acts as a caching pre-processor to C/C++ \ compilers, using the -E compiler switch and a hash to detect when a \ compilation can be satisfied from cache. This often results in a 5 to 10 \ times speedup in common compilations. homepage http://ccache.samba.org/ platforms darwin freebsd master_sites http://samba.org/ftp/ccache/ checksums md5 b9132d867286f0184b8f6c5bb84e3865 \ sha1 41e385066bcaf87416aafa17115aef8523751bff \ rmd160 2996b6821c656640af95d1a95651b02d08dcd034 post-patch { set config [open ${worksrcpath}/config.h.in a] puts ${config} "#undef HAVE_PWD_H" puts ${config} "#undef HAVE_GETPWUID" close ${config} } configure.args --mandir=${prefix}/share/man set symlinks_dir ${prefix}/libexec/ccache post-destroot { file mkdir ${destroot}${symlinks_dir} foreach {bin} { cc gcc gcc2 gcc3 gcc-3.3 gcc-4.0 gcc-4.2 c++ c++3 c++-3.3 c++-4.0 c++-4.2 g++ g++2 g++3 g++-3.3 g++-4.0 g++-4.2 } { ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin} } } notes "The ccache symlinks are installed in ${symlinks_dir}"