Index: head/security/nacl/Makefile =================================================================== --- head/security/nacl/Makefile (revision 425953) +++ head/security/nacl/Makefile (revision 425954) @@ -1,54 +1,50 @@ # Created by: David Thiel # $FreeBSD$ PORTNAME= nacl PORTVERSION= 20110221 PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://hyperelliptic.org/nacl/ -MAINTAINER= johans@FreeBSD.org +MAINTAINER= johans@FreeBSD.org COMMENT= High speed cryptography library USES= tar:bzip2 ALL_TARGET= do USE_BINUTILS= yes MAKE_JOBS_UNSAFE= yes -BROKEN_aarch64= Does not build: /proc/cpuinfo: No such file or directory -BROKEN_mips64= Does not build: /proc/cpuinfo: No such file or directory -BROKEN_powerpc= Does not compile on powerpc -BROKEN_powerpc64= Does not build -BROKEN_sparc64= Does not compile on sparc64 +ONLY_FOR_ARCHS= i386 amd64 HOSTNAME_CMD?= /bin/hostname -s -MYARCH= ${ARCH:S/i386/x86/:S/powerpc/ppc/} +MYARCH= ${ARCH:S/i386/x86/} 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} -r ${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