Index: devel/ccache/Makefile =================================================================== RCS file: /a/.cvsup/ports/devel/ccache/Makefile,v retrieving revision 1.62 diff -u -p -r1.62 Makefile --- devel/ccache/Makefile 11 Jun 2011 21:10:12 -0000 1.62 +++ devel/ccache/Makefile 14 Jul 2011 11:27:00 -0000 @@ -35,6 +35,7 @@ CCACHE_COMPILERS+= icc icpc GNU_COMPILERS+= 34 42 43 44 45 46 CCACHE_COMPILERS+= cc c++ gcc g++ ${GNU_COMPILERS:S|^|gcc|} ${GNU_COMPILERS:S|^|g++|} CCACHE_COMPILERS+= clang clang++ llvm-gcc llvm-c++ llvm-g++ +CCACHE_COMPILERS+= ${EXTRA_COMPILERS} SUB_LIST+= CCACHE_COMPILERS="${CCACHE_COMPILERS}" \ CCLINKDIR="${CCLINKDIR}" \ ICCPREFIX="${LOCALBASE}/intel_cc_80/bin" \ Index: devel/ccache/files/ccache-update-links.sh.in =================================================================== RCS file: /a/.cvsup/ports/devel/ccache/files/ccache-update-links.sh.in,v retrieving revision 1.1 diff -u -p -r1.1 ccache-update-links.sh.in --- devel/ccache/files/ccache-update-links.sh.in 29 Mar 2011 14:15:03 -0000 1.1 +++ devel/ccache/files/ccache-update-links.sh.in 14 Jul 2011 11:29:49 -0000 @@ -32,7 +32,7 @@ esac # create compiler links for comp in ${CCACHE_COMPILERS} do - if [ -f "${PREFIX}/bin/${comp}" ] || [ -f "/usr/bin/${comp}" ]; then + if command -v "${comp}" >/dev/null; then if [ ! -L "${PREFIX}/${CCLINKDIR}/${comp}" ]; then [ "$1" = "-v" ] && echo "create symlink for ${comp}" ln -sf ${PREFIX}/bin/ccache ${PREFIX}/${CCLINKDIR}/${comp}