# Created by: David Thiel # $FreeBSD: head/security/nacl/Makefile 413746 2016-04-21 16:43:14Z swills $ PORTNAME= nacl PORTVERSION= 20110221 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://hyperelliptic.org/nacl/ MAINTAINER= johans@FreeBSD.org COMMENT= High speed cryptography library BROKEN_powerpc64= Does not build 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 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