notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
Volunteers wanted to help translate FreshPorts
Port details
ccache4 Tool to minimize the compile time of C/C++ programs
4.14.1 devel on this many watch lists=4 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 4.14Version of this port present on the latest quarterly branch.
Maintainer: osidorkin@gmail.com search for ports maintained by this maintainer
Port Added: 2023-03-13 21:09:06
Last Update: 2026-10-03 11:20:38
Commit Hash: 711e4a8
People watching this port, also watch:: pkg, htop, bash, smartmontools, neovim
License: GPLv3+
WWW:
https://ccache.dev/
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    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
pkg-plist: as obtained via: make generate-plist
Expand this list (16 items)
Collapse this list.
  1. /usr/local/share/licenses/ccache4-4.14.1/catalog.mk
  2. /usr/local/share/licenses/ccache4-4.14.1/LICENSE
  3. /usr/local/share/licenses/ccache4-4.14.1/GPLv3+
  4. bin/ccache
  5. bin/ccache-update-links
  6. etc/periodic/daily/ccache_clean
  7. libexec/ccache/world/ccache
  8. share/doc/ccache/LICENSE.adoc
  9. share/doc/ccache/LICENSE.html
  10. share/man/man1/ccache.1.gz
  11. @postexec echo "Create compiler links..."
  12. @postexec %D/bin/ccache-update-links -v
  13. @preunexec find %D/libexec/ccache -type l -exec rm -f {} \;
  14. @owner
  15. @group
  16. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ccache4>0:devel/ccache4
Conflicts:
CONFLICTS_INSTALL:
  • ccache
  • ccache-static
To install the port:
cd /usr/ports/devel/ccache4/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/ccache4
  • pkg install ccache4
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: ccache4
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1790609600 SHA256 (ccache-4.14.1.tar.xz) = 29f10de481ac2c41c91bfabead63d803bd2fe823e09752aade5b0b8704cc4f30 SIZE (ccache-4.14.1.tar.xz) = 554404

Packages (timestamps in pop-ups are UTC):
ccache4
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest4.10.2_24.13.5n/an/an/an/an/an/a
FreeBSD:13:quarterly4.10.2_24.10.2_2n/an/an/an/an/an/a
FreeBSD:14:latest4.144.14-4.10.2_1-4.8-4.8
FreeBSD:14:quarterly4.13.64.13.6-4.10.2-4.8.34.8.34.8.3
FreeBSD:15:latest4.144.14.1n/a4.10.2_1n/an/a4.8.34.9
FreeBSD:15:quarterly4.13.64.13.6n/a-n/an/a--
FreeBSD:16:latest4.144.14.1n/a-n/an/a--
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. asciidoctor : textproc/rubygem-asciidoctor
  2. bash : shells/bash
  3. pandoc : textproc/hs-pandoc
  4. libzstd.a : archivers/zstd
  5. libxxhash.a : devel/xxhash
  6. cmake : devel/cmake-core
  7. perl5>=5.42.r<5.43 : lang/perl5.42
Runtime dependencies:
  1. groff : textproc/groff
  2. perl5>=5.42.r<5.43 : lang/perl5.42
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for ccache4-4.14.1: CLANGLINK=on: Create clang compiler links if clang is installed DOCS=on: Build and/or install documentation LLVMLINK=on: Create llvm compiler links if llvm is installed STATIC=on: Build static executables and/or libraries TEST=off: Build and/or run tests ===> Use 'make config' to modify these settings
Options name:
devel_ccache4
USES:
cmake:noninja compiler:c++17-lang pathfix shebangfix tar:xz groff:run perl5
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://github.com/ccache/ccache/releases/download/v4.14.1/
Collapse this list.

Number of commits found: 11

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
4.14.1
03 Oct 2026 11:20:38
commit hash: 711e4a896df2ab59ff0a64e2df1f715db2b082a2commit hash: 711e4a896df2ab59ff0a64e2df1f715db2b082a2commit hash: 711e4a896df2ab59ff0a64e2df1f715db2b082a2commit hash: 711e4a896df2ab59ff0a64e2df1f715db2b082a2 files touched by this commit
Jochen Neumeister (joneum) search for other commits by this committer
Author: Oleg Sidorkin
devel/ccache4: Update to 4.14.1

- Restored storage helper lock compatibility with ccache versions earlier
  than 4.14.
- Fixed lookup of GCC 9+ profile data for object files in subdirectories
  and added support for GCC's -fprofile-partial-training option.
- Fixed the output location of files produced by GCC's -fdump-ipa-clones
  option.
- Fixed hashing of C++20 module files found via Clang's
  -fprebuilt-module-path option, preventing false cache hits when a module
  changes.

Changes:	https://ccache.dev/releasenotes.html#_ccache_4_14_1
PR:		298969
Sponsored by:	Netzkommune GmbH
4.14
27 Aug 2026 04:14:13
commit hash: 6875c0d589ef4aebf57c8e6a54eac865b0e680a6commit hash: 6875c0d589ef4aebf57c8e6a54eac865b0e680a6commit hash: 6875c0d589ef4aebf57c8e6a54eac865b0e680a6commit hash: 6875c0d589ef4aebf57c8e6a54eac865b0e680a6 files touched by this commit
Koichiro Iwao (meta) search for other commits by this committer
Author: Oleg Sidorkin
devel/ccache4: Update to 4.14

PR:		297887
4.13.6
12 May 2026 09:31:17
commit hash: 477b1aa8c4266c5d7fbe41fdafb499754fd29686commit hash: 477b1aa8c4266c5d7fbe41fdafb499754fd29686commit hash: 477b1aa8c4266c5d7fbe41fdafb499754fd29686commit hash: 477b1aa8c4266c5d7fbe41fdafb499754fd29686 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/ccache4: Update to 4.13.6

- Use upstream release tarball
- Use = instead of += for CMAKE_ARGS
- Sort CMAKE_OFF
- Sort PLIST

Changes:	https://github.com/ccache/ccache/releases
		https://ccache.dev/releasenotes.html
PR:		295140
Approved by:	Oleg Sidorkin <osidorkin@gmail.com> (maintainer)
4.13.5
27 Apr 2026 17:51:33
commit hash: c82d5e6e72d71137f63873e7df8ce4247dd288becommit hash: c82d5e6e72d71137f63873e7df8ce4247dd288becommit hash: c82d5e6e72d71137f63873e7df8ce4247dd288becommit hash: c82d5e6e72d71137f63873e7df8ce4247dd288be files touched by this commit
Bryan Drewery (bdrewery) search for other commits by this committer
devel/ccache4: update to 4.13.5 and fix tests

Pass maintainership to Oleg.

Submitted by:	siva, Oleg Sidorkin [earlier versions]
PR:		285361
4.10.2_2
05 Nov 2025 20:59:34
commit hash: b2cea6a8b1c6cae9952d9a80b77ac019cd198aa4commit hash: b2cea6a8b1c6cae9952d9a80b77ac019cd198aa4commit hash: b2cea6a8b1c6cae9952d9a80b77ac019cd198aa4commit hash: b2cea6a8b1c6cae9952d9a80b77ac019cd198aa4 files touched by this commit
Po-Chuan Hsieh (sunpoet) search for other commits by this committer
devel/libfmt: Bump PORTREVISION of dependent ports for shlib change after
786cb608216ce14e8ced27108c96a1f2c8492fca

The following ports are skipped because they have been updated after
786cb608216ce14e8ced27108c96a1f2c8492fca.
- chinese/fcitx5-chinese-addons
- chinese/fcitx5-mcbopomofo
- devel/fatal
- devel/fbthrift
- devel/folly
- devel/spdlog
- mail/mu
- net/fb303
- net/mvfst
- net/wangle
- science/seacas
- security/fizz
- www/proxygen
4.10.2_1
10 Aug 2025 19:02:47
commit hash: b7e654fbfea9bb2771c35b1148250c2f1cf0c6a2commit hash: b7e654fbfea9bb2771c35b1148250c2f1cf0c6a2commit hash: b7e654fbfea9bb2771c35b1148250c2f1cf0c6a2commit hash: b7e654fbfea9bb2771c35b1148250c2f1cf0c6a2 files touched by this commit
Matthias Andree (mandree) search for other commits by this committer
*: Bump PORTREVISION for devel/libfmt  update {fmt.dev}
4.10.2
29 Jan 2025 16:32:04
commit hash: 9f3e54599328a5ca357f46863a17ccb669fd03cfcommit hash: 9f3e54599328a5ca357f46863a17ccb669fd03cfcommit hash: 9f3e54599328a5ca357f46863a17ccb669fd03cfcommit hash: 9f3e54599328a5ca357f46863a17ccb669fd03cf files touched by this commit
Vladimir Druzenko (vvd) search for other commits by this committer
devel/ccache4: Update 4.9 → 4.10.2

Based on patches from Oleg Sidorkin and Älven.

Improve port:
- update required compiler version from 11 to 17;
- update CONFLICTS_INSTALL;
- update GNU_COMPILERS and CLANG_COMPILERS;
- update dependencies;
- improve STATIC and TEST options;
- fix warnings from portclippy - sort options and etc.

Changelogs:
https://ccache.dev/releasenotes.html#_ccache_4_10_2

PR:		276854 283910
Approved by:	bdrewery (maintainer, timeout 1 year)
Tested by:	Oleg Sidorkin (osidorkin@gmail.com), Älven (alster@vinterdalen.se)
4.9
04 Feb 2024 02:09:17
commit hash: 7045625cb3712876d1a37097acdf34a886d2c5accommit hash: 7045625cb3712876d1a37097acdf34a886d2c5accommit hash: 7045625cb3712876d1a37097acdf34a886d2c5accommit hash: 7045625cb3712876d1a37097acdf34a886d2c5ac files touched by this commit
Joel Bodenmann (jbo) search for other commits by this committer
Author: Oleg Sidorkin
devel/ccache4: Update to 4.9

Changelog: https://ccache.dev/releasenotes.html#_ccache_4_9

PR:		276126
Approved by:	tcberner (mentor, implicit), bdrewery (maintainer, timeout)
4.8.3
12 Dec 2023 13:26:32
commit hash: da2c2b2eb794ac698dd6e6fae909fa5b22676d24commit hash: da2c2b2eb794ac698dd6e6fae909fa5b22676d24commit hash: da2c2b2eb794ac698dd6e6fae909fa5b22676d24commit hash: da2c2b2eb794ac698dd6e6fae909fa5b22676d24 files touched by this commit
Joel Bodenmann (jbo) search for other commits by this committer
Author: Oleg Sidorkin
devel/ccache4: Update to 4.8.3

Changelog: https://ccache.dev/releasenotes.html#_ccache_4_8_3

PR:			271536
Approved by:		tcberner (mentor), bdrewery (maintainer, timeout)
Differential Revision:	https://reviews.freebsd.org/D42890
4.8
02 Aug 2023 10:54:07
commit hash: 533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4edcommit hash: 533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4edcommit hash: 533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4edcommit hash: 533e1cea6cd9c9b6b1afc2ece1648c70e8d7a4ed files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
devel/ccache4: Fix build with STATIC option

PR:		272880
4.8
13 Mar 2023 21:04:41
commit hash: 61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4commit hash: 61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4commit hash: 61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4commit hash: 61e5c612e7f14178fec95fd56dcbf2b6b9fce5d4 files touched by this commit
Kurt Jaeger (pi) search for other commits by this committer
Author: Oleg Sidorkin
devel/ccache4: new port

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.

PR:		234971
Approved by:	bdrewery
Author:    Oleg Sidorkin <osidorkin@gmail.com>

Number of commits found: 11