Index: security/libdecaf/Makefile =================================================================== --- security/libdecaf/Makefile +++ security/libdecaf/Makefile @@ -2,6 +2,7 @@ PORTNAME= libdecaf PORTVERSION= 0.9.4 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF/ed448goldilocks/ @@ -11,19 +12,20 @@ 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 Index: security/libdecaf/files/patch-Makefile =================================================================== --- security/libdecaf/files/patch-Makefile +++ security/libdecaf/files/patch-Makefile @@ -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 Index: security/libdecaf/pkg-plist =================================================================== --- /dev/null +++ security/libdecaf/pkg-plist @@ -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