Buenas noches ports@! 

I'd like to propose adding a BLAKE3 port, an
implementation of this cryptographic function in C.

I've noticed that ccache uses a bundled version of BLAKE3 that's behind
the upstream version. I think we should use shared library instead,
since ccache has long supported more than just the bundled version. 

https://github.com/ccache/ccache/commit/04dad2827736749cd828d7c6b1d95e3994735e3e

Tested on amd64, diff and port attached.

OK?




Attachment: BLAKE3-1.8.5.tar.gz
Description: application/gzip

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/ccache/Makefile,v
diff -u -p -u -r1.111 Makefile
--- Makefile	27 May 2026 12:22:13 -0000	1.111
+++ Makefile	25 Jun 2026 21:34:38 -0000
@@ -9,6 +9,8 @@ DISTFILES.dt=	doctest-$D{doctest}.h
 SITES.dt=	https://github.com/doctest/doctest/releases/download/v$D/
 EXTRACT_ONLY=	${DISTFILES}
 
+REVISION=	0
+
 CATEGORIES=	devel
 
 HOMEPAGE=	https://ccache.dev/
@@ -16,7 +18,7 @@ HOMEPAGE=	https://ccache.dev/
 # GPLv3+
 PERMIT_PACKAGE=	 Yes
 
-WANTLIB += ${COMPILER_LIBCXX} c fmt hiredis m xxhash zstd
+WANTLIB += ${COMPILER_LIBCXX} blake3 c fmt hiredis m xxhash zstd
 
 MODULES=	devel/cmake
 CONFIGURE_ARGS=	-DCMAKE_INSTALL_SYSCONFDIR=${SYSCONFDIR}
@@ -30,7 +32,8 @@ BUILD_DEPENDS=	textproc/asciidoctor \
 LIB_DEPENDS=	archivers/zstd \
 		databases/libhiredis \
 		devel/fmt \
-		sysutils/xxhash
+		sysutils/xxhash \
+		security/blake3
 
 TEST_DEPENDS=	shells/bash \
 		sysutils/coreutils

Reply via email to