2015-10-23 22:48:34 +00:00
|
|
|
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= s2n
|
2017-04-13 14:24:32 +00:00
|
|
|
PORTVERSION= 20170410
|
2015-10-23 22:48:34 +00:00
|
|
|
CATEGORIES= security
|
|
|
|
|
|
|
|
MAINTAINER= danilo@FreeBSD.org
|
|
|
|
COMMENT= C99 implementation of the TLS/SSL protocols
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
|
2017-02-06 02:26:26 +00:00
|
|
|
ONLY_FOR_ARCHS= amd64
|
|
|
|
|
2015-10-23 22:48:34 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= awslabs
|
2017-04-13 14:24:32 +00:00
|
|
|
GH_TAGNAME= 30b4b69
|
2015-10-23 22:48:34 +00:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
|
2016-06-29 19:25:41 +00:00
|
|
|
USES= gmake ssl
|
2015-10-23 22:48:34 +00:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message Makefile
|
|
|
|
ALL_TARGET= bin
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|CRYPTO_LDFLAGS |&+|' \
|
|
|
|
${WRKSRC}/tests/testlib/Makefile \
|
|
|
|
${WRKSRC}/tests/unit/Makefile
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/lib/libs2n.so* ${STAGEDIR}${LOCALBASE}/lib
|
|
|
|
${LN} -s libs2n.so ${STAGEDIR}${LOCALBASE}/lib/libs2n.so.0
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/api/s2n* ${STAGEDIR}${LOCALBASE}/include
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/bin/*.c ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/Makefile ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
|
|
|
|
tests: build
|
2017-02-04 20:54:04 +00:00
|
|
|
${GMAKE} PLATFORM=FreeBSD S2N_DONT_MLOCK=yes \
|
|
|
|
CRYPTO_LDFLAGS=-L${LOCALBASE}/lib -C ${WRKSRC}/tests
|
2015-10-23 22:48:34 +00:00
|
|
|
|
2016-06-16 13:23:13 +00:00
|
|
|
.include <bsd.port.mk>
|