From owner-svn-ports-all@freebsd.org Wed Jan 10 07:39:32 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 79041E6F039; Wed, 10 Jan 2018 07:39:32 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 52ED83659; Wed, 10 Jan 2018 07:39:32 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 71FA122A5F; Wed, 10 Jan 2018 07:39:31 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0A7dVY4068921; Wed, 10 Jan 2018 07:39:31 GMT (envelope-from krion@FreeBSD.org) Received: (from krion@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0A7dVuP068917; Wed, 10 Jan 2018 07:39:31 GMT (envelope-from krion@FreeBSD.org) Message-Id: <201801100739.w0A7dVuP068917@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: krion set sender to krion@FreeBSD.org using -f From: Kirill Ponomarev Date: Wed, 10 Jan 2018 07:39:31 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458613 - in head/security/libdecaf: . files X-SVN-Group: ports-head X-SVN-Commit-Author: krion X-SVN-Commit-Paths: in head/security/libdecaf: . files X-SVN-Commit-Revision: 458613 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Jan 2018 07:39:32 -0000 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 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