Index: head/security/highwayhash/Makefile =================================================================== --- head/security/highwayhash/Makefile (revision 557377) +++ head/security/highwayhash/Makefile (revision 557378) @@ -1,36 +1,37 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= highwayhash PORTVERSION= g20201021 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= security MAINTAINER= yuri@FreeBSD.org COMMENT= Fast strong hash functions: SipHash/HighwayHash LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE ONLY_FOR_ARCHS= aarch64 amd64 powerpc powerpc64 powerpc64le ONLY_FOR_ARCHS_REASON= Assembly is implemented only for specific architectures in highwayhash/tsc_timer.h USES= compiler:c++11-lang gmake USE_GITHUB= yes GH_ACCOUNT= google GH_TAGNAME= bdd572de8cfa3a1fbef6ba32307c2629db7c4773 USE_LDCONFIG= yes .include .if ${ARCH:Mpowerpc*} CXXFLAGS+= -mpower8-vector MAKE_ENV+= HH_POWER=1 .elif ${ARCH} == aarch64 || ${ARCH:Marmv*} MAKE_ENV+= HH_ARM=1 .endif post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhighwayhash.so .include Index: head/security/highwayhash/files/patch-highwayhash_arch__specific.cc =================================================================== --- head/security/highwayhash/files/patch-highwayhash_arch__specific.cc (revision 557377) +++ head/security/highwayhash/files/patch-highwayhash_arch__specific.cc (revision 557378) @@ -1,21 +1,12 @@ --- highwayhash/arch_specific.cc.orig 2020-09-22 06:18:43 UTC +++ highwayhash/arch_specific.cc @@ -24,8 +24,8 @@ #if __GLIBC__ #include // __ppc_get_timebase_freq #elif __FreeBSD__ -#include #include +#include #endif #endif -@@ -174,7 +174,7 @@ double InvariantTicksPerSecond() { - #elif __FreeBSD__ - static double cycles_per_second = 0; - size_t length = sizeof(cycles_per_second); -- sysctlbyname("kern.timecounter.tc.timebase.frequency", &cycles_per_second, -+ sysctlbyname("dev.cpu.0.freq", &cycles_per_second, - &length, NULL, 0); - #endif - return cycles_per_second;