Ravenports generated: 15 Feb 2023 23:13
[ravenports.git] / bucket_EB / ccache
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               ccache
4 VERSION=                4.7.4
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Fast C/C++ compiler cache tool
8 HOMEPAGE=               https://ccache.samba.org/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/ccache/ccache/releases/download/v4.7.4/
13 DISTFILE[1]=            ccache-4.7.4.tar.xz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        complete
16                         primary
17                         docs
18
19 OPTIONS_AVAILABLE=      none
20 OPTIONS_STANDARD=       none
21
22 BUILD_DEPENDS=          ruby-asciidoctor:single:ruby_default
23
24 USES=                   cmake perl:build c++:primary zstd:build
25
26 DISTNAME=               ccache-4.7.4
27
28 LICENSE=                GPLv3+:primary
29 LICENSE_TERMS=          primary:{{WRKSRC}}/LICENSE.adoc
30 LICENSE_FILE=           GPLv3+:{{WRKSRC}}/GPL-3.0.txt
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         devel/ccache
34
35 BUILD_TARGET=           all doc
36
37 INSTALL_REQ_TOOLCHAIN=  yes
38 PLIST_SUB=              CCLINKDIR="libexec/ccache"
39
40 CMAKE_ARGS=             -DENABLE_TESTING:BOOL=OFF
41                         -DREDIS_STORAGE_BACKEND:BOOL=OFF
42
43 post-install:
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}
47 .endfor
48         ${MKDIR} ${STAGEDIR}${STD_DOCDIR}
49         ${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR}
50         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache
51
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.
57
58
59 [FILE:98:distinfo]
60 df0c64d15d3efaf0b4f6837dd6b1467e40eeaaa807db25ce79c3a08a46a84e36       547820 ccache-4.7.4.tar.xz
61
62
63 [FILE:88:manifests/plist.primary]
64 %%CCLINKDIR%%/
65  c++
66  cc
67  clang
68  clang++
69  g++
70  gcc
71 bin/ccache
72 share/man/man1/ccache.1.gz
73
74
75 [FILE:29:manifests/plist.docs]
76 share/doc/ccache/MANUAL.html
77
78
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})
85  else()
86 -  find_library(ZSTD_LIBRARY zstd)
87 +  find_library(ZSTD_LIBRARY zstd_pic)
88    find_path(ZSTD_INCLUDE_DIR zstd.h)
89  endif()
90  
91
92
93 [FILE:721:patches/patch-cmake_config.h.in]
94 --- cmake/config.h.in.orig      2022-11-21 18:53:32 UTC
95 +++ cmake/config.h.in
96 @@ -36,16 +36,18 @@
97  #cmakedefine _DARWIN_C_SOURCE
98  
99  // Define to activate features from IEEE Stds 1003.1-2008.
100 +#if !defined(__sun)
101  #define _POSIX_C_SOURCE 200809L
102 +#endif
103  
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
115  #endif
116  
117
118
119 [FILE:209:patches/patch-src_Util.cpp]
120 --- src/Util.cpp.orig   2022-11-21 18:53:32 UTC
121 +++ src/Util.cpp
122 @@ -41,6 +41,7 @@ extern "C" {
123  #include "third_party/base32hex.h"
124  }
125  
126 +#include <limits.h>
127  #ifdef HAVE_DIRENT_H
128  #  include <dirent.h>
129  #endif
130
131
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)
138  
139 +if(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)")
140 +  target_link_libraries(third_party PUBLIC socket)
141 +endif()
142 +
143  if(WIN32)
144    target_link_libraries(third_party PRIVATE ws2_32)
145  endif()
146
147
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
152    return ret;
153  }
154  
155 -#if !defined _WIN32 && !defined ANDROID
156 +#if !defined _WIN32 && !defined ANDROID && !defined __sun
157  #define USE_IF2IP
158  #endif
159  
160
161
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;
166  #else // not _WIN32
167  
168  #include <arpa/inet.h>
169 +#ifndef __sun
170  #include <ifaddrs.h>
171 +#endif
172  #include <net/if.h>
173  #include <netdb.h>
174  #include <netinet/in.h>
175
176
177 [FILE:333:files/Makefile.BSD.in]
178 .SUFFIXES:
179 .SUFFIXES: .o .c
180
181 SRCS=   src/main.c \
182         src/args.c \
183         src/ccache.c \ 
184         src/cleanup.c \
185         src/compopt.c \
186         src/conf.c \
187         src/confitems.c \
188         src/counters.c \
189         src/execute.c \
190         src/exitfn.c \
191         src/main.c
192
193 OBJS=           ${SRCS:R:S/$/.o/}
194
195 CFLAGS+=        -I./src \
196                 -I./src/zlib \
197                 -I./unittest \
198                 -DCC_IS_GCC \
199                 -Wno-implicit-fallthrough
200