Ccache version 2.4 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 2.4

      View the most recent changes for the ccache port at: ccache.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for ccache.
      The raw portfile for ccache 2.4 is located here:
      http://ccache.darwinports.com/dports/devel/ccache/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/ccache


      The ccache Portfile 36651 2008-05-09 11:30:05Z nox macports.org $

      PortSystem 1.0

      Name: ccache
      Version: 2.4
      Revision: 2
      Category: devel
      Maintainers: nox
      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/
      Platform: darwin freebsd
      Master Sites: http://samba.org/ftp/ccache/

      Checksums: md5 73c1ed1e767c1752dd0f548ec1e66ce7 sha1 9833ec13de9b90d5409e60d679ac681115ef465e rmd160 43a0647c7faf659121a53a92ec45d245b8140124

      configure.args --mandir=${prefix}/share/man

      use_parallel_build yes

      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
      c++ c++3 c++-3.3 c++-4.0
      g++ g++2 g++3 g++-3.3 g++-4.0
      } {
      ln -sf ${prefix}/bin/ccache ${destroot}${symlinks_dir}/${bin}
      }

      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}/html
      xinstall -m 0644 -W ${worksrcpath} COPYING README ${destroot}${docdir}
      eval xinstall -m 0644 [glob ${worksrcpath}/web/*.html] ${destroot}${docdir}/html
      }

      post-activate {
      ui_msg "The ccache symlinks are installed in ${symlinks_dir}"
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/ccache
      % sudo port install ccache
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching ccache
      ---> Verifying checksum for ccache
      ---> Extracting ccache
      ---> Configuring ccache
      ---> Building ccache with target all
      ---> Staging ccache into destroot
      ---> Installing ccache
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using ccache with these commands:
      %  man ccache
      % apropos ccache
      % which ccache
      % locate ccache

     Where to find more information:

    Darwin Ports



    Lightbox this page.