42 lines
905 B
Makefile
42 lines
905 B
Makefile
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
|
|
|
|
PORTNAME= s2n
|
|
PORTVERSION= 1.3.4
|
|
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= aws
|
|
GH_PROJECT= s2n-tls
|
|
|
|
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:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${CP} -r ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/bin/*.c ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|