git: a4214f1e3bed - main - sysutils/rdfind: add support for xxhash
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Jul 2026 10:13:00 UTC
The branch main has been updated by skozlov:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a4214f1e3bed543383d52ec89b3991792fab1587
commit a4214f1e3bed543383d52ec89b3991792fab1587
Author: Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
AuthorDate: 2026-07-29 10:12:15 +0000
Commit: Serhii (Sergey) Kozlov <skozlov@FreeBSD.org>
CommitDate: 2026-07-29 10:12:35 +0000
sysutils/rdfind: add support for xxhash
In the current form - the support for xxhash depends on whether or not
xxhash is installed in the system where the port is built. See
https://github.com/pauldreik/rdfind#development.
This commit makes (lack of) support for xxhash explicit. If the option
is enabled - the xxhash is added to dependencies and built into rdfind,
if disabled - xxhash support is disabled even if the library is present
in the system.
Reviewed by: dtxdf
Differential Revision: https://reviews.freebsd.org/D58398
---
sysutils/rdfind/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/sysutils/rdfind/Makefile b/sysutils/rdfind/Makefile
index bd8d76180c7f..1b5121ea1cb5 100644
--- a/sysutils/rdfind/Makefile
+++ b/sysutils/rdfind/Makefile
@@ -16,6 +16,14 @@ USES= autoreconf localbase:ldflags
GNU_CONFIGURE= yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+OPTIONS_DEFINE= XXHASH
+OPTIONS_DEFAULT=XXHASH
+
+XXHASH_DESC= Enable support for faster xxhash128 checksum
+XXHASH_BUILD_DEPENDS= xxhash>0:devel/xxhash
+XXHASH_RUN_DEPENDS= xxhash>0:devel/xxhash
+XXHASH_CONFIGURE_WITH= xxhash
+
PLIST_FILES= bin/${PORTNAME} \
share/man/man1/${PORTNAME}.1.gz