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.7.4/
13 DISTFILE[1]= ccache-4.7.4.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.7.4
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 df0c64d15d3efaf0b4f6837dd6b1467e40eeaaa807db25ce79c3a08a46a84e36 547820 ccache-4.7.4.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:422:patches/patch-cmake_Findzstd.cmake]
80 --- cmake/Findzstd.cmake.orig 2022-11-21 18:53:32 UTC
81 +++ cmake/Findzstd.cmake
82 @@ -10,7 +10,7 @@ if(PKG_CONFIG_FOUND)
83 find_library(ZSTD_LIBRARY zstd HINTS ${PC_ZSTD_LIBDIR} ${PC_ZSTD_LIBRARY_DIRS})
84 find_path(ZSTD_INCLUDE_DIR zstd.h HINTS ${PC_ZSTD_INCLUDEDIR} ${PC_ZSTD_INCLUDE_DIRS})
86 - find_library(ZSTD_LIBRARY zstd)
87 + find_library(ZSTD_LIBRARY zstd_pic)
88 find_path(ZSTD_INCLUDE_DIR zstd.h)
93 [FILE:721:patches/patch-cmake_config.h.in]
94 --- cmake/config.h.in.orig 2022-11-21 18:53:32 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 2022-11-21 18:53:32 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 2022-11-21 18:53:32 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:303:patches/patch-src_third__party_httplib.cpp]
149 --- src/third_party/httplib.cpp.orig 2022-11-21 18:53:32 UTC
150 +++ src/third_party/httplib.cpp
151 @@ -821,7 +821,7 @@ bool bind_ip_address(socket_t sock, cons
155 -#if !defined _WIN32 && !defined ANDROID
156 +#if !defined _WIN32 && !defined ANDROID && !defined __sun
162 [FILE:292:patches/patch-src_third__party_httplib.h]
163 --- src/third_party/httplib.h.orig 2022-11-21 18:53:32 UTC
164 +++ src/third_party/httplib.h
165 @@ -168,7 +168,9 @@ using socket_t = SOCKET;
168 #include <arpa/inet.h>
174 #include <netinet/in.h>
177 [FILE:333:files/Makefile.BSD.in]
193 OBJS= ${SRCS:R:S/$/.o/}
199 -Wno-implicit-fallthrough