# Created by: Yuri Victorovich <yuri@rawbw.com>
# $FreeBSD: tags/RELEASE_12_1_0/security/highwayhash/Makefile 507372 2019-07-26 20:46:53Z gerald $

PORTNAME=	highwayhash
PORTVERSION=	g20190324
PORTREVISION=	1
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: g++6: error: unrecognized command line option '-mavx2'
ONLY_FOR_ARCHS=		aarch64 amd64 powerpc powerpc64
ONLY_FOR_ARCHS_REASON=	Assembly is implemented only for specific architectures in highwayhash/tsc_timer.h

USES=		compiler:c++11-lib gmake
USE_GITHUB=	yes
GH_ACCOUNT=	google
GH_TAGNAME=	30bd801
USE_LDCONFIG=	yes

.include <bsd.port.mk>
