# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= ccache VERSION= 4.9.1 KEYWORDS= devel VARIANTS= standard SDESC[standard]= Fast C/C++ compiler cache tool HOMEPAGE= https://ccache.samba.org/ CONTACT= nobody DOWNLOAD_GROUPS= main SITES[main]= https://github.com/ccache/ccache/releases/download/v4.9.1/ DISTFILE[1]= ccache-4.9.1.tar.xz:main DF_INDEX= 1 SPKGS[standard]= complete primary docs OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= ruby-asciidoctor:single:ruby_default USES= cmake perl:build c++:primary zstd:build DISTNAME= ccache-4.9.1 LICENSE= GPLv3+:primary LICENSE_TERMS= primary:{{WRKSRC}}/LICENSE.adoc LICENSE_FILE= GPLv3+:{{WRKSRC}}/GPL-3.0.txt LICENSE_SCHEME= solo FPC_EQUIVALENT= devel/ccache BUILD_TARGET= all doc INSTALL_REQ_TOOLCHAIN= yes PLIST_SUB= CCLINKDIR="libexec/ccache" CMAKE_ARGS= -DENABLE_TESTING:BOOL=OFF -DREDIS_STORAGE_BACKEND:BOOL=OFF post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/ccache .for compiler in cc c++ gcc g++ clang clang++ ${LN} -sf ${PREFIX}/bin/ccache ${STAGEDIR}${PREFIX}/libexec/ccache/${compiler} .endfor ${MKDIR} ${STAGEDIR}${STD_DOCDIR} ${INSTALL_DATA} ${INSTALL_WRKSRC}/doc/MANUAL.html ${STAGEDIR}${STD_DOCDIR} ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ccache [FILE:253:descriptions/desc.primary] 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. [FILE:98:distinfo] 4c03bc840699127d16c3f0e6112e3f40ce6a230d5873daa78c60a59c7ef59d25 583764 ccache-4.9.1.tar.xz [FILE:88:manifests/plist.primary] %%CCLINKDIR%%/ c++ cc clang clang++ g++ gcc bin/ccache share/man/man1/ccache.1.gz [FILE:29:manifests/plist.docs] share/doc/ccache/MANUAL.html [FILE:357:patches/patch-cmake_Findzstd.cmake] --- cmake/Findzstd.cmake.orig 2023-12-30 15:08:02 UTC +++ cmake/Findzstd.cmake @@ -25,7 +25,7 @@ else() endif() if(NOT zstd_FOUND) - find_library(ZSTD_LIBRARY zstd) + find_library(ZSTD_LIBRARY zstd_pic) find_path(ZSTD_INCLUDE_DIR zstd.h) if(ZSTD_LIBRARY AND ZSTD_INCLUDE_DIR) message(STATUS "Using zstd from ${ZSTD_LIBRARY}") [FILE:721:patches/patch-cmake_config.h.in] --- cmake/config.h.in.orig 2023-12-30 15:08:02 UTC +++ cmake/config.h.in @@ -35,16 +35,18 @@ #cmakedefine _DARWIN_C_SOURCE // Define to activate features from IEEE Stds 1003.1-2008. +#if !defined(__sun) #define _POSIX_C_SOURCE 200809L +#endif #if defined(__SunOS_5_8) || defined(__SunOS_5_9) || defined(__SunOS_5_10) # define _XOPEN_SOURCE 500 -#elif defined(__FreeBSD__) +#elif defined(__FreeBSD__) || defined(__DragonFly__) # define _XOPEN_SOURCE 700 #elif defined(__ibmxl__) && defined(__clang__) // Compiler xlclang # define _XOPEN_SOURCE 600 # define _ALL_SOURCE 1 -#elif !defined(__SunOS_5_11) && !defined(__APPLE__) +#elif !defined(__sun) && !defined(__APPLE__) # define _XOPEN_SOURCE #endif [FILE:448:patches/patch-src_third__party_CMakeLists.txt] --- src/third_party/CMakeLists.txt.orig 2023-12-30 15:08:02 UTC +++ src/third_party/CMakeLists.txt @@ -49,6 +49,10 @@ target_include_directories( target_link_libraries(third_party PRIVATE standard_settings) target_link_libraries(third_party INTERFACE blake3) +if(CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") + target_link_libraries(third_party PUBLIC socket) +endif() + if(WIN32) target_link_libraries(third_party PRIVATE ws2_32) endif() [FILE:333:files/Makefile.BSD.in] .SUFFIXES: .SUFFIXES: .o .c SRCS= src/main.c \ src/args.c \ src/ccache.c \ src/cleanup.c \ src/compopt.c \ src/conf.c \ src/confitems.c \ src/counters.c \ src/execute.c \ src/exitfn.c \ src/main.c OBJS= ${SRCS:R:S/$/.o/} CFLAGS+= -I./src \ -I./src/zlib \ -I./unittest \ -DCC_IS_GCC \ -Wno-implicit-fallthrough