blob: 20a4e49e6a17978da7fe2f9e0fab5aec1b75c11f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Created by: roam@FreeBSD.org
# $FreeBSD$
PORTNAME= poly1305aes
PORTVERSION= 20050218
CATEGORIES= security
MASTER_SITES= http://cr.yp.to/mac/
MAINTAINER= ports@FreeBSD.org
COMMENT= The poly1305 message authentication reference implementation using AES
CC+= ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${STRIP}
ALL_TARGET= default
REPLACE_HDRS= aes.h cpucycles.h poly1305aes.h
PROGRAM_FILES= poly1305aes-speed test-aes test-poly1305aes
NO_STAGE= yes
do-install:
${MKDIR} ${PREFIX}/include/poly1305
${INSTALL_DATA} ${WRKSRC}/*_*.h ${PREFIX}/include/poly1305/
.for i in ${REPLACE_HDRS}
${REINPLACE_CMD} -e "s,#include \",#include \"poly1305/," ${WRKSRC}/$i > ${WRKSRC}/$i.fixed
${INSTALL_DATA} ${WRKSRC}/$i.fixed ${PREFIX}/include/poly1305/$i
${INSTALL_DATA} ${WRKSRC}/*.a ${PREFIX}/lib/
${INSTALL_DATA} ${PROGRAM_FILES:S,^,${WRKSRC}/,} ${PREFIX}/bin/
.endfor
.include <bsd.port.mk>
|