freebsd-ports/security/poly1305aes/Makefile
Mark Linimon bf43557044 For ports that are marked BROKEN on armv6, and also fail to build on
armv7, mark them so.

This is part two of a multipart commit to bring armv7 ports to parity
with armv6.

Approved by:	portmgr (tier-2 blanket)
Obtained from:	lonesome.com -exp run
2017-11-30 06:13:34 +00:00

47 lines
1.2 KiB
Makefile

# Created by: roam@FreeBSD.org
# $FreeBSD$
PORTNAME= poly1305aes
PORTVERSION= 20050218
CATEGORIES= security
MASTER_SITES= http://cr.yp.to/mac/
MAINTAINER= ports@FreeBSD.org
COMMENT= Poly1305 message authentication reference implementation using AES
LICENSE= PD
ALL_TARGET= default
CC+= ${CPPFLAGS} ${CFLAGS} ${LDFLAGS}
BROKEN_armv6= fails to build: poly1305aes.impl.do: fatal: all tests failed
BROKEN_armv7= fails to build: poly1305aes.impl.do: fatal: all tests failed
BROKEN_aarch64= fails to build: poly1305aes.impl.do: fatal: all tests failed
NOT_FOR_ARCHS= amd64
.include <bsd.port.pre.mk>
pre-build:
.if ${ARCH} == "i386"
@${ECHO_CMD} "ppro" > ${WRKSRC}/poly1305aes.impl
.endif
post-build:
.for i in aes.h cpucycles.h poly1305aes.h
@${REINPLACE_CMD} -e \
's|#include "|#include "poly1305/|' ${WRKSRC}/${i}
.endfor
do-install:
.for i in poly1305aes-speed test-aes test-poly1305aes
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} \
${STAGEDIR}${PREFIX}/bin)
.endfor
@${MKDIR} ${STAGEDIR}${PREFIX}/include/poly1305
(cd ${WRKSRC} && ${INSTALL_DATA} *.h \
${STAGEDIR}${PREFIX}/include/poly1305)
(cd ${WRKSRC} && ${INSTALL_DATA} *.a \
${STAGEDIR}${PREFIX}/lib)
.include <bsd.port.post.mk>