mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
e59c88cece
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from GCC 5.4 to GCC 6.4 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang, c++14-lang, c++0x, c11, or gcc-c++11-lib. PR: 219275
52 lines
1.1 KiB
Makefile
52 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= b2sum
|
|
PORTVERSION= 0.0.d${B2VERSION}
|
|
PORTREVISION= 3
|
|
CATEGORIES= sysutils security
|
|
MASTER_SITES= http://blake2.net/
|
|
DISTNAME= blake2_code_${B2VERSION}${EXTRACT_SUFFX}
|
|
|
|
MAINTAINER= rezny@FreeBSD.org
|
|
COMMENT= Fast secure hashing
|
|
|
|
LICENSE= CC0-1.0
|
|
LICENSE_FILE= ${WRKSRC}/../COPYING
|
|
|
|
B2VERSION= 20150531
|
|
|
|
USES= zip
|
|
USE_CSTD= c99
|
|
WRKSRC_SUBDIR= b2sum
|
|
MAKEFILE= makefile
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
|
|
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 -flax-vector-conversions
|
|
.else
|
|
CFLAGS+= -I../ref
|
|
EXTRA_PATCHES= ${PATCHDIR}/use_ref.patch
|
|
.endif
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|