When building lang/clang37 it depends on clang37 binary that can be also installed via devel/ccache. The correct way to depend is to include the whole path to the binary: RUN_DEPENDS+= ${PREFIX}/bin/clang${LLVM_SUFFIX}:${PORTSDIR}/devel/llvm${LLVM_SUFFIX}
A commit references this bug: Author: brooks Date: Thu Dec 3 09:14:13 UTC 2015 New revision: 402868 URL: https://svnweb.freebsd.org/changeset/ports/402868 Log: Depend on ${PREFIX}/bin/clang37 to avoid confusion with the clang37 installed by devel/ccache. PR: 204937 MFH: 2015Q4 Changes: head/lang/clang37/Makefile
A commit references this bug: Author: brooks Date: Thu Dec 3 17:50:15 UTC 2015 New revision: 402896 URL: https://svnweb.freebsd.org/changeset/ports/402896 Log: MFH: r402868 Depend on ${PREFIX}/bin/clang37 to avoid confusion with the clang37 installed by devel/ccache. PR: 204937 Approved by: portmgr (feld) Changes: _U branches/2015Q4/ branches/2015Q4/lang/clang37/Makefile