the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: ccache
Version: 2.4
Revision: 20
Maintainer: Ben Hines
Source: http://ccache.samba.org/ftp/%n/%n-%v.tar.gz
Source-MD5: 73c1ed1e767c1752dd0f548ec1e66ce7
CompileScript: <<
./configure %c
make CFLAGS='-g -O2 -Wall -W -I. -prebind'
<<
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
make install prefix=%i mandir=%i/share/man
ln -s %p/bin/ccache %i/bin/cc
ln -s %p/bin/ccache %i/bin/c++
ln -s %p/bin/ccache %i/bin/c++-4.0
ln -s %p/bin/ccache %i/bin/c++-3.3
ln -s %p/bin/ccache %i/bin/g++
ln -s %p/bin/ccache %i/bin/gcc
ln -s %p/bin/ccache %i/bin/g++-4.0
ln -s %p/bin/ccache %i/bin/g++-3.3
ln -s %p/bin/ccache %i/bin/gcc-4.0
ln -s %p/bin/ccache %i/bin/gcc-3.3
<<
PostInstScript: <<
echo "If you wish ccache to be the default compiler"
echo "(to override and send ALL compilations through ccache),"
echo " install the \"ccache-default\" package."
<<
SplitOff: <<
Package: ccache-default
Depends: ccache
Files: bin/cc bin/c++ bin/c++-4.0 bin/c++-3.3 bin/g++ bin/gcc bin/g++-4.0 bin/g++-3.3 bin/gcc-4.0 bin/gcc-3.3
Description: C/C++ compiler cache - As default compiler
DescDetail: <<
This package installs symlinks for ccache to override your compiler.
ccache will affect ALL COMPILATIONS with this package installed.
If you have strange compilation problems, remove this package FIRST,
before reporting any package or compile bugs.
<<
PostInstScript: <<
ccache -c > /dev/null
echo "***************** WARNING ********************"
echo "ALL gcc3.3 and gcc4.0 compiles will now be sent through ccache!"
echo "For the most part ccache is reliable, but"
echo "it can occasionally cause strange compile problems!"
echo "If you have a strange compile problem, remove this package"
echo "and try again before reporting any bugs!"
echo ""
echo "Additionally, the default cache size is 1 Gig."
echo "so you may want to run \"ccache -M 500M\" (for example)"
echo "to limit the size of the cache."
echo "***************** WARNING ********************"
<<
<<
DocFiles: README COPYING
Description: C/C++ compiler cache
DescDetail: <<
ccache 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.
If you wish ccache to be the default compiler (to override and send ALL
compilations through ccache), install the "ccache-default" package.
<<
Homepage: http://ccache.samba.org/
License: GPL
Package: ccache
Version: 2.4
Revision: 20
Maintainer: Ben Hines
Source: http://ccache.samba.org/ftp/%n/%n-%v.tar.gz
Source-MD5: 73c1ed1e767c1752dd0f548ec1e66ce7
CompileScript: <<
./configure %c
make CFLAGS='-g -O2 -Wall -W -I. -prebind'
<<
InstallScript: <<
mkdir -p %i/bin
mkdir -p %i/share/man/man1
make install prefix=%i mandir=%i/share/man
ln -s %p/bin/ccache %i/bin/cc
ln -s %p/bin/ccache %i/bin/c++
ln -s %p/bin/ccache %i/bin/c++-4.0
ln -s %p/bin/ccache %i/bin/c++-3.3
ln -s %p/bin/ccache %i/bin/g++
ln -s %p/bin/ccache %i/bin/gcc
ln -s %p/bin/ccache %i/bin/g++-4.0
ln -s %p/bin/ccache %i/bin/g++-3.3
ln -s %p/bin/ccache %i/bin/gcc-4.0
ln -s %p/bin/ccache %i/bin/gcc-3.3
<<
PostInstScript: <<
echo "If you wish ccache to be the default compiler"
echo "(to override and send ALL compilations through ccache),"
echo " install the \"ccache-default\" package."
<<
SplitOff: <<
Package: ccache-default
Depends: ccache
Files: bin/cc bin/c++ bin/c++-4.0 bin/c++-3.3 bin/g++ bin/gcc bin/g++-4.0 bin/g++-3.3 bin/gcc-4.0 bin/gcc-3.3
Description: C/C++ compiler cache - As default compiler
DescDetail: <<
This package installs symlinks for ccache to override your compiler.
ccache will affect ALL COMPILATIONS with this package installed.
If you have strange compilation problems, remove this package FIRST,
before reporting any package or compile bugs.
<<
PostInstScript: <<
ccache -c > /dev/null
echo "***************** WARNING ********************"
echo "ALL gcc3.3 and gcc4.0 compiles will now be sent through ccache!"
echo "For the most part ccache is reliable, but"
echo "it can occasionally cause strange compile problems!"
echo "If you have a strange compile problem, remove this package"
echo "and try again before reporting any bugs!"
echo ""
echo "Additionally, the default cache size is 1 Gig."
echo "so you may want to run \"ccache -M 500M\" (for example)"
echo "to limit the size of the cache."
echo "***************** WARNING ********************"
<<
<<
DocFiles: README COPYING
Description: C/C++ compiler cache
DescDetail: <<
ccache 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.
If you wish ccache to be the default compiler (to override and send ALL
compilations through ccache), install the "ccache-default" package.
<<
Homepage: http://ccache.samba.org/
License: GPL