svn commit: r458613 - in head/security/libdecaf: . files
Kirill Ponomarev
krion at FreeBSD.org
Wed Jan 10 07:39:32 UTC 2018
Author: krion
Date: Wed Jan 10 07:39:30 2018
New Revision: 458613
URL: https://svnweb.freebsd.org/changeset/ports/458613
Log:
- Remove explicit -march=native declaration.
- Mark ONLY_FOR_ARCHS=amd64 (it is temporary only until I'm ready
with proper configure and Makefiles to set
ARCH_FOR_p448=arch_ref64 ARCH_FOR_p25519=arch_ref64 for aarch64
instead of arch_x86_64 and arch_32 for i386)
- Manually install headers (until we've proper build system in
upstream as well)
Added:
head/security/libdecaf/pkg-plist (contents, props changed)
Modified:
head/security/libdecaf/Makefile
head/security/libdecaf/files/patch-Makefile
Modified: head/security/libdecaf/Makefile
==============================================================================
--- head/security/libdecaf/Makefile Wed Jan 10 06:57:57 2018 (r458612)
+++ head/security/libdecaf/Makefile Wed Jan 10 07:39:30 2018 (r458613)
@@ -2,6 +2,7 @@
PORTNAME= libdecaf
PORTVERSION= 0.9.4
+PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= SF/ed448goldilocks/
@@ -11,19 +12,20 @@ COMMENT= Implementation of elliptic curve cryptography
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+ONLY_FOR_ARCHS= amd64
+
USES= gmake python:2.7 tar:tgz
USE_LDCONFIG= yes
+CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
-PLIST_FILES= bin/ristretto bin/shakesum \
- lib/libdecaf.so lib/libdecaf.so.1
-
post-patch:
@${REINPLACE_CMD} -e 's|PYTHON ?= python|PYTHON ?= ${PYTHON_CMD}|g' \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/bin/* ${STAGEDIR}${PREFIX}/bin/
+ ${CP} -R ${WRKSRC}/src/GENERATED/include/* ${STAGEDIR}${PREFIX}/include/
${INSTALL_LIB} ${WRKSRC}/build/lib/* ${STAGEDIR}${PREFIX}/lib/
.include <bsd.port.mk>
Modified: head/security/libdecaf/files/patch-Makefile
==============================================================================
--- head/security/libdecaf/files/patch-Makefile Wed Jan 10 06:57:57 2018 (r458612)
+++ head/security/libdecaf/files/patch-Makefile Wed Jan 10 07:39:30 2018 (r458613)
@@ -1,4 +1,4 @@
---- Makefile.orig 2018-01-08 13:58:29 UTC
+--- Makefile.orig 2017-10-16 23:18:47 UTC
+++ Makefile
@@ -19,7 +19,7 @@ BUILD_IBIN = build/obj/bin
@@ -9,8 +9,17 @@
CC = clang
CXX = clang++
else
-@@ -97,14 +97,14 @@ scan: clean
+@@ -49,8 +49,6 @@ endif
+ TODAY = $(shell date "+%Y-%m-%d")
+
+-ARCHFLAGS ?= -march=native
+-
+ ifeq ($(CC),clang)
+ WARNFLAGS_C += -Wgcc-compat
+ endif
+@@ -97,14 +95,14 @@ scan: clean
+
# Internal test programs, which are not part of the final build/bin directory.
$(BUILD_IBIN)/test: $(BUILD_OBJ)/test_decaf.o lib
-ifeq ($(UNAME),Darwin)
@@ -26,7 +35,7 @@
$(LDXX) $(LDFLAGS) -o $@ $< -L$(BUILD_LIB) -ldecaf
else
$(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/$(BUILD_LIB) -o $@ $< -L$(BUILD_LIB) -ldecaf
-@@ -112,14 +112,14 @@ endif
+@@ -112,14 +110,14 @@ endif
# Internal test programs, which are not part of the final build/bin directory.
$(BUILD_IBIN)/test_ct: $(BUILD_OBJ)/test_ct.o lib
Added: head/security/libdecaf/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/libdecaf/pkg-plist Wed Jan 10 07:39:30 2018 (r458613)
@@ -0,0 +1,23 @@
+bin/ristretto
+bin/shakesum
+include/decaf.h
+include/decaf.hxx
+include/decaf/common.h
+include/decaf/ed255.h
+include/decaf/ed255.hxx
+include/decaf/ed448.h
+include/decaf/ed448.hxx
+include/decaf/eddsa.hxx
+include/decaf/point_255.h
+include/decaf/point_255.hxx
+include/decaf/point_448.h
+include/decaf/point_448.hxx
+include/decaf/secure_buffer.hxx
+include/decaf/sha512.h
+include/decaf/sha512.hxx
+include/decaf/shake.h
+include/decaf/shake.hxx
+include/decaf/spongerng.h
+include/decaf/spongerng.hxx
+lib/libdecaf.so
+lib/libdecaf.so.1
More information about the svn-ports-head
mailing list