Files
ports/security/nacl/Makefile
Daniel Engberg 69ef46ace5 security/nacl: Deprecate and set expiration date to 2021-12-31
No new release for over 10 years and pretty much "any" user of NaCl have
migrated to security/libsodium or at least really should by now.
We have no users left in ports except for dns/djbdns which is "half" broken
and support isn't enabled by default.

PR:		256449
Approved by:	port maintainer timeout (3 months), arrowd (mentor)
Differential Revision:	https://reviews.freebsd.org/D32215
2021-09-29 09:42:27 +02:00

49 lines
1.3 KiB
Makefile

# Created by: David Thiel <lx@FreeBSD.org>
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
DEPRECATED= Unmaintained by upstream, use libsodium instead
EXPIRATION_DATE=2021-12-31
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>