0493b380f3
No bump for dependent port is required as this version has no API changes
39 lines
1,016 B
Makefile
39 lines
1,016 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libsodium
|
|
PORTVERSION= 1.0.11
|
|
CATEGORIES= security
|
|
MASTER_SITES= http://download.libsodium.org/libsodium/releases/
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
COMMENT= Library to build higher-level cryptographic tools
|
|
|
|
LICENSE= ISCL
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= libtool pathfix pkgconfig compiler:c11
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS+= --enable-blocking-random
|
|
INSTALL_TARGET?= install-strip
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${ARCH} == i386 && ${OSVERSION} < 1000036
|
|
# resolve undefined reference to __stack_chk_fail_local
|
|
LDFLAGS+= -lssp_nonshared -Wl,--no-undefined
|
|
.endif
|
|
|
|
post-install:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${STAGEDIR}${DOCSDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/THANKS ${STAGEDIR}${DOCSDIR}/
|
|
|
|
regression-test: build
|
|
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} \
|
|
${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
.include <bsd.port.post.mk>
|