1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00

Update to 0.0.20160619

- Update MASTER_SITES
- Take maintainership

Changes:	https://github.com/BLAKE2/BLAKE2/commits/master
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-07-27 11:54:25 +00:00
parent 0e5bc827e8
commit 27f6043635
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=507404
4 changed files with 21 additions and 42 deletions

View File

@ -1,29 +1,29 @@
# $FreeBSD$
PORTNAME= b2sum
PORTVERSION= 0.0.d${B2VERSION}
PORTREVISION= 6
PORTVERSION= 0.0.20160619
CATEGORIES= sysutils security
MASTER_SITES= http://blake2.net/
DISTNAME= blake2_code_${B2VERSION}${EXTRACT_SUFFX}
MAINTAINER= ports@FreeBSD.org
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Fast secure hashing
LICENSE= CC0-1.0
LICENSE_FILE= ${WRKSRC}/../COPYING
B2VERSION= 20150531
USES= zip
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
MAKEFILE= makefile
USE_CSTD= c99
WRKSRC_SUBDIR= b2sum
MAKEFILE= makefile
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LIBS="${LDFLAGS}"
PLIST_FILES= bin/b2sum
USE_GITHUB= yes
GH_ACCOUNT= BLAKE2
GH_PROJECT= BLAKE2
GH_TAGNAME= ${PORTVERSION:E}
OPTIONS_DEFINE= OPENMP OPTIMIZED_CFLAGS SSE
OPTIONS_DEFAULT_amd64=SSE
OPTIONS_DEFAULT_amd64= SSE
SSE_DESC= Use SSE2, SSSE3, SSE4.1, AVX or XOP instructions
OPENMP_USES+= compiler:openmp
@ -42,7 +42,7 @@ CFLAGS+= -march=native
CFLAGS+= -I../sse -flax-vector-conversions
.else
CFLAGS+= -I../ref
EXTRA_PATCHES= ${PATCHDIR}/use_ref.patch
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-makefile
.endif
do-install:

View File

@ -1,2 +1,3 @@
SHA256 (blake2_code_20150531.zip) = 37168711cddb349e7462bcc4874992a8e1c66de2318a20507b498be2d7c7d1e7
SIZE (blake2_code_20150531.zip) = 461445
TIMESTAMP = 1549358972
SHA256 (BLAKE2-BLAKE2-0.0.20160619-20160619_GH0.tar.gz) = cbac833ccae56b5c6173dbeaf871aa99b32745cf7a994c7451d4533ecda55633
SIZE (BLAKE2-BLAKE2-0.0.20160619-20160619_GH0.tar.gz) = 462704

View File

@ -1,13 +1,13 @@
--- makefile.orig 2015-05-31 23:30:20 UTC
--- makefile.orig 2016-06-19 16:55:55 UTC
+++ makefile
@@ -1,8 +1,8 @@
CC=gcc
CFLAGS=-std=c99 -O3 -march=native -I../sse -static -fopenmp
@@ -9,8 +9,8 @@ CFLAGS?=-O3 -march=native -Werror=declar
CFLAGS+=-std=c99 -I../sse
CFLAGS+=$(NO_OPENMP_$(NO_OPENMP))
LIBS=
-#FILES=blake2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
-#FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
-FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c
+FILES=b2sum.c ../ref/blake2b-ref.c ../ref/blake2s-ref.c ../ref/blake2bp-ref.c ../ref/blake2sp-ref.c
+#FILES=b2sum.c ../sse/blake2b.c ../sse/blake2s.c ../sse/blake2bp.c ../sse/blake2sp.c
all: $(FILES)
$(CC) $(FILES) $(CFLAGS) $(LIBS) -o b2sum
$(CC) $(FILES) $(CFLAGS) $(LIBS) -o $(PROG)

View File

@ -1,22 +0,0 @@
--- ../ref/blake2.h.orig 2015-06-01 01:10:19 UTC
+++ ../ref/blake2.h
@@ -19,6 +19,8 @@
#if defined(_MSC_VER)
#define ALIGN(x) __declspec(align(x))
+#elif defined(__clang__)
+#define ALIGN(x) /* unaligned access in b2*p at -O >0 */
#else
#define ALIGN(x) __attribute__((aligned(x)))
#endif
--- ../sse/blake2.h.orig 2015-05-29 08:02:54 UTC
+++ ../sse/blake2.h
@@ -19,6 +19,8 @@
#if defined(_MSC_VER)
#define ALIGN(x) __declspec(align(x))
+#elif defined(__clang__)
+#define ALIGN(x) /* unaligned access in b2*p at -O >0 */
#else
#define ALIGN(x) __attribute__ ((__aligned__(x)))
#endif