Index: head/security/highwayhash/Makefile =================================================================== --- head/security/highwayhash/Makefile (revision 551914) +++ head/security/highwayhash/Makefile (revision 551915) @@ -1,30 +1,37 @@ # Created by: Yuri Victorovich # $FreeBSD$ PORTNAME= highwayhash PORTVERSION= g20200803 PORTEPOCH= 1 CATEGORIES= security MAINTAINER= yuri@FreeBSD.org COMMENT= Fast strong hash functions: SipHash/HighwayHash LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE BROKEN_aarch64= fails to compile: /usr/lib/clang/5.0.0/include/mmintrin.h:47:5: use of undeclared identifier '__builtin_ia32_emms' -BROKEN_powerpc64= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname -BROKEN_powerpc64le= fails to compile: highwayhash/arch_specific.cc:153:32: error: too few arguments to function sysctlbyname 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= 954e56589a7e75bad04f1063174d78f8c17a9b3a 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