1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/security/nacl/Makefile
2015-08-04 16:37:42 +00:00

53 lines
1.5 KiB
Makefile

# Created by: David Thiel <lx@FreeBSD.org>
# $FreeBSD$
PORTNAME= nacl
PORTVERSION= 20110221
PORTREVISION= 1
CATEGORIES= security
MASTER_SITES= http://hyperelliptic.org/nacl/
MAINTAINER= johans@FreeBSD.org
COMMENT= High speed cryptography library
USES= tar:bzip2
ALL_TARGET= do
USE_BINUTILS= yes
MAKE_JOBS_UNSAFE= yes
BROKEN_ia64= Does not compile on ia64, powerpc, or sparc64
BROKEN_powerpc= Does not compile on ia64, powerpc, or sparc64
BROKEN_sparc64= Does not compile on ia64, powerpc, or sparc64
HOSTNAME_CMD?= /bin/hostname -s
MYARCH= ${ARCH:S/i386/x86/:S/powerpc/ppc/}
post-patch:
@${REINPLACE_CMD} -i -e "s|$$| -fPIC|" ${WRKSRC}/okcompilers/c
@${REINPLACE_CMD} -i -e "s|gcc|${CC}|" ${WRKSRC}/okcompilers/c
@${REINPLACE_CMD} -i -e "s|c++|${CXX}|" ${WRKSRC}/okcompilers/cpp
pre-build:
${RM} -rf ${WRKSRC}/crypto_onetimeauth/poly1305/amd64
do-build:
cd ${WRKSRC} && ./do
.include <bsd.port.pre.mk>
post-build:
${AR} -r ${WRKSRC}/build/`${HOSTNAME_CMD}`/lib/${MYARCH}/libnacl.a \
${WRKSRC}/build/`${HOSTNAME_CMD}`/lib/${MYARCH}/randombytes.o
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/bin/nacl-sha256 \
${STAGEDIR}${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/build/`${HOSTNAME_CMD} -s`/bin/nacl-sha512 \
${STAGEDIR}${PREFIX}/bin
@${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD}`/lib/${MYARCH}/* \
${STAGEDIR}${PREFIX}/lib
@${INSTALL_DATA} ${WRKSRC}/build/`${HOSTNAME_CMD}`/include/${MYARCH}/* \
${STAGEDIR}${PREFIX}/include
.include <bsd.port.post.mk>