c05ab09e69
- Update WWW: in pkg-descr. - Style clean-ups.
47 lines
1.2 KiB
Makefile
47 lines
1.2 KiB
Makefile
# Created by: David Thiel <lx@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= nacl
|
|
PORTVERSION= 20110221
|
|
PORTREVISION= 2
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://hyperelliptic.org/nacl/
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= High speed cryptography library
|
|
|
|
LICENSE= PD
|
|
|
|
USES= tar:bzip2
|
|
USE_BINUTILS= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
MYARCH= ${ARCH:S/i386/x86/}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s|$$| -fPIC|" ${WRKSRC}/okcompilers/c
|
|
@${REINPLACE_CMD} -e "s|gcc|${CC}|" ${WRKSRC}/okcompilers/c
|
|
@${REINPLACE_CMD} -e "s|g++|${CXX}|" ${WRKSRC}/okcompilers/cpp
|
|
|
|
pre-build:
|
|
${RM} -r ${WRKSRC}/crypto_onetimeauth/poly1305/amd64
|
|
${PRINTF} "%s\n\t%s\n" "all:" "${SH} ./do" > ${WRKSRC}/Makefile
|
|
|
|
post-build:
|
|
${AR} -r ${WRKSRC}/build/HOSTNAME/lib/${MYARCH}/libnacl.a \
|
|
${WRKSRC}/build/HOSTNAME/lib/${MYARCH}/randombytes.o
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/HOSTNAME/bin/nacl-sha256 \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/build/HOSTNAME/bin/nacl-sha512 \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/build/HOSTNAME/lib/${MYARCH}/* \
|
|
${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/build/HOSTNAME/include/${MYARCH}/* \
|
|
${STAGEDIR}${PREFIX}/include
|
|
|
|
.include <bsd.port.mk>
|