1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-05 06:27:37 +00:00
freebsd-ports/security/s2n/Makefile
2021-04-06 16:31:07 +02:00

43 lines
951 B
Makefile

# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
PORTNAME= s2n
PORTVERSION= 0.10.23
DISTVERSIONPREFIX= v
PORTEPOCH= 1
CATEGORIES= security
MAINTAINER= danilo@FreeBSD.org
COMMENT= C99 implementation of the TLS/SSL protocols
LICENSE= APACHE20
USES= cmake ssl
USE_GITHUB= yes
GH_ACCOUNT= awslabs
OPTIONS_DEFINE= DOCS EXAMPLES TEST
USE_LDCONFIG= yes
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
SUB_FILES= pkg-message
.include <bsd.port.options.mk>
.if ${ARCH} != aarch64 && ${ARCH} != amd64 && ${ARCH} != arm && ${ARCH} != armv6 && ${ARCH} != armv7 && ${ARCH} != i386
CMAKE_ARGS+= -DS2N_NO_PQ:BOOL=ON
.endif
post-build-TEST-on:
(cd ${WRKDIR}/.build && ninja test)
post-install:
${LN} -s libs2n.so ${STAGEDIR}${LOCALBASE}/lib/libs2n.so.0
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/bin/*.c ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>