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/v4.8.2/
13 DISTFILE[1]= ccache-4.8.2.tar.xz:main
15 SPKGS[standard]= complete
19 OPTIONS_AVAILABLE= none
20 OPTIONS_STANDARD= none
22 BUILD_DEPENDS= ruby-asciidoctor:single:ruby_default
24 USES= cmake perl:build c++:primary zstd:build
26 DISTNAME= ccache-4.8.2
28 LICENSE= GPLv3+:primary
29 LICENSE_TERMS= primary:{{WRKSRC}}/LICENSE.adoc
30 LICENSE_FILE= GPLv3+:{{WRKSRC}}/GPL-3.0.txt
33 FPC_EQUIVALENT= devel/ccache
37 INSTALL_REQ_TOOLCHAIN= yes
38 PLIST_SUB= CCLINKDIR="libexec/ccache"
40 CMAKE_ARGS= -DENABLE_TESTING:BOOL=OFF
41 -DREDIS_STORAGE_BACKEND:BOOL=OFF
44 ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ccache
45 .for compiler in cc c++ gcc g++ clang clang++
46 ${LN} -sf ${PREFIX}/bin/ccache ${STAGEDIR}${PREFIX}/libexec/ccache/${compiler}
48 ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
49 ${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR}
50 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache
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 3d3fb3f888a5b16c4fa7ee5214cca76348afd6130e8443de5f6f2424f2076a49 560888 ccache-4.8.2.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:357:patches/patch-cmake_Findzstd.cmake]
80 --- cmake/Findzstd.cmake.orig 2023-06-12 19:17:31 UTC
81 +++ cmake/Findzstd.cmake
82 @@ -25,7 +25,7 @@ else()
86 - find_library(ZSTD_LIBRARY zstd)
87 + find_library(ZSTD_LIBRARY zstd_pic)
88 find_path(ZSTD_INCLUDE_DIR zstd.h)
89 if(ZSTD_LIBRARY AND ZSTD_INCLUDE_DIR)
90 message(STATUS "Using zstd from ${ZSTD_LIBRARY}")
93 [FILE:721:patches/patch-cmake_config.h.in]
94 --- cmake/config.h.in.orig 2023-06-12 19:17:31 UTC
97 #cmakedefine _DARWIN_C_SOURCE
99 // Define to activate features from IEEE Stds 1003.1-2008.
101 #define _POSIX_C_SOURCE 200809L
104 #if defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10)
105 # define _XOPEN_SOURCE 500
106 -#elif defined(__FreeBSD__)
107 +#elif defined(__FreeBSD__) || defined(__DragonFly__)
108 # define _XOPEN_SOURCE 700
109 #elif defined(__ibmxl__) && defined(__clang__) // Compiler xlclang
110 # define _XOPEN_SOURCE 600
111 # define _ALL_SOURCE 1
112 -#elif !defined(__SunOS_5_11) && !defined(__APPLE__)
113 +#elif !defined(__sun) && !defined(__APPLE__)
114 # define _XOPEN_SOURCE
119 [FILE:209:patches/patch-src_Util.cpp]
120 --- src/Util.cpp.orig 2023-06-12 19:17:31 UTC
122 @@ -41,6 +41,7 @@ extern "C" {
123 #include "third_party/base32hex.h"
132 [FILE:448:patches/patch-src_third__party_CMakeLists.txt]
133 --- src/third_party/CMakeLists.txt.orig 2023-06-12 19:17:31 UTC
134 +++ src/third_party/CMakeLists.txt
135 @@ -49,6 +49,10 @@ target_include_directories(
136 target_link_libraries(third_party PRIVATE standard_settings)
137 target_link_libraries(third_party INTERFACE blake3)
139 +if(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
140 + target_link_libraries(third_party PUBLIC socket)
144 target_link_libraries(third_party PRIVATE ws2_32)
148 [FILE:333:files/Makefile.BSD.in]
164 OBJS= ${SRCS:R:S/$/.o/}
170 -Wno-implicit-fallthrough