freebsd-ports/sysutils/b2sum/Makefile
Dmitry Marakasov f05a469f19 - Mark BROKEN on 9.x amd64:
../sse/blake2b.c: In function 'blake2b_compress':
../sse/blake2b.c:294: note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts
../sse/blake2b.c:294: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'
../sse/blake2b.c:294: error: incompatible type for argument 1 of '__builtin_ia32_psrlqi128'

Submitted by:	pkg-fallout
Approved by:	portmgr blanket
2015-06-27 20:58:08 +00:00

53 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= b2sum
PORTVERSION= 0.0.d${B2VERSION}
PORTREVISION= 1
CATEGORIES= sysutils security
MASTER_SITES= http://blake2.net/
DISTNAME= blake2_code_${B2VERSION}${EXTRACT_SUFFX}
MAINTAINER= matthew@reztek.cz
COMMENT= Fast secure hashing
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/../COPYING
BROKEN_FreeBSD_9_amd64= does not build
B2VERSION= 20150529
USES= zip
USE_CSTD= c99
WRKSRC_SUBDIR= b2sum
MAKEFILE= makefile
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
PLIST_FILES= bin/b2sum
OPTIONS_DEFINE= OPENMP OPTIMIZED_CFLAGS SSE
OPTIONS_DEFAULT_amd64=SSE
SSE_DESC= Use SSE2, SSSE3, SSE4.1, AVX or XOP instructions
OPENMP_USES+= compiler:openmp
OPENMP_CFLAGS+= -fopenmp
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3
.if !${CFLAGS:M-march=*}
CFLAGS+= -march=native
.endif
.endif
.if (${PORT_OPTIONS:MSSE} && (${ARCH} == "i386" || ${ARCH} == "amd64"))
CFLAGS+= -I../sse
.else
CFLAGS+= -I../ref
EXTRA_PATCHES= ${PATCHDIR}/use_ref.patch
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>