1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Fast C/C++ compiler cache tool
8 HOMEPAGE= https://ccache.samba.org/
12 SITES[main]= https://github.com/ccache/ccache/releases/download/v3.7.9/
13 DISTFILE[1]= ccache-3.7.9.tar.xz:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 DISTNAME= ccache-3.7.9
24 LICENSE= GPLv3+:primary
25 LICENSE_TERMS= primary:{{WRKSRC}}/LICENSE.adoc
26 LICENSE_FILE= GPLv3+:{{WRKSRC}}/GPL-3.0.txt
29 FPC_EQUIVALENT= devel/ccache
34 PLIST_SUB= CCLINKDIR="libexec/ccache"
37 -Wno-implicit-fallthrough
38 VAR_OPSYS[sunos]= CPPFLAGS=-D_XPG6
42 ${INSTALL_PROGRAM} ${WRKSRC}/ccache ${STAGEDIR}${PREFIX}/bin
43 ${INSTALL_MAN} ${WRKSRC}/doc/ccache.1 \
44 ${STAGEDIR}${PREFIX}/share/man/man1
45 @${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ccache
46 .for compiler in cc c++ gcc g++ clang clang++
47 ${LN} -sf ${PREFIX}/bin/ccache ${STAGEDIR}${PREFIX}/libexec/ccache/${compiler}
49 @${MKDIR} ${STAGEDIR}${STD_DOCDIR}
50 ${INSTALL_DATA} ${WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR}
52 [FILE:253:descriptions/desc.primary]
53 ccache is a compiler cache. It acts as a caching pre-processor to C/C++
54 compilers, using the -E compiler switch and a hash to detect when a
55 compilation can be satisfied from cache. This often results in a 5 to 10
56 times speedup in common compilations.
60 f893da7543bfb9172bd55e603fcbdfcd83e6def176a28689c13235695b4cf44b 352948 ccache-3.7.9.tar.xz
63 [FILE:88:manifests/plist.primary]
72 share/man/man1/ccache.1.gz
75 [FILE:29:manifests/plist.docs]
76 share/doc/ccache/MANUAL.html
79 [FILE:456:patches/patch-Makefile.in]
80 --- Makefile.in.orig 2020-03-29 14:11:45 UTC
82 @@ -125,11 +125,7 @@ install: ccache$(EXEEXT) @disable_man@cc
84 rm -rf $(files_to_clean)
86 -$(non_3pp_objs) $(test_objs): CFLAGS += @more_warnings@
88 -src/snprintf.o: CFLAGS += @no_implicit_fallthrough_warning@
89 -$(zlib_objs): CPPFLAGS += -include config.h
90 -$(zlib_objs): CFLAGS += @no_implicit_fallthrough_warning@
92 src/zlib/libz.a: $(zlib_objs)
93 $(if $(quiet),@echo " AR $@")
96 [FILE:1228:patches/patch-src_ccache.c]
97 - Don't hash -fcolor-diagnostics; make will auto use it while make -j will not.
98 There's no reason to not use the cache in either of these cases if it is
101 --- src/ccache.c.orig 2020-03-29 14:11:45 UTC
103 @@ -2001,6 +2001,7 @@ calculate_common_hash(struct args *args,
108 // Possibly hash GCC_COLORS (for color diagnostics).
109 if (guessed_compiler == GUESSED_GCC) {
110 const char *gcc_colors = getenv("GCC_COLORS");
111 @@ -2009,6 +2010,7 @@ calculate_common_hash(struct args *args,
112 hash_string(hash, gcc_colors);
118 // Update a hash sum with information specific to the direct and preprocessor
119 @@ -2046,6 +2048,13 @@ calculate_object_hash(struct args *args,
123 + /* Colors do not affect compilation. */
124 + if (str_startswith(args->argv[i], "-fcolor-diagnostics") ||
125 + str_eq(args->argv[i], "-fdiagnostics-color") ||
126 + str_eq(args->argv[i], "-fdiagnostics-color=always")) {
130 // The -fdebug-prefix-map option may be used in combination with
131 // CCACHE_BASEDIR to reuse results across different directories. Skip using
132 // the value of the option from hashing but still hash the existence of the