freebsd-ports/security/wolfssl/Makefile
Santhosh Raju cedb20777a security/wolfssl: Add DEBUG option and enable more features.
- Set --enable-opensslall which is needed for
  wolfSSL_X509_NAME_print_ex() and friends.
- Set --enable-certgen to allow certificate generation.
- Define WOLFSSL_ALT_NAMES so one can generate certificates
  with the Subject Alternative Name extension.
- Set --enable-sessioncerts to allow to inspect certificates
  with wolfSSL_get_peer_cert_chain().
- Set --enable-des3 so one can load PBES2-3DES-CBC-encoded keys.

Additionally a patch to prevent memory leaks is included.

PR:		252829
Submitted by:	Fabian Keil <fk@fabiankeil.de>
Reported by:	Fabian Keil <fk@fabiankeil.de>
Approved by:	fox (maintainer)
2021-01-29 22:11:11 +00:00

57 lines
1.2 KiB
Makefile

# $FreeBSD$
PORTNAME= wolfssl
PORTVERSION= 4.6.0
PORTREVISION= 1
CATEGORIES= security devel
MASTER_SITES= https://www.wolfssl.com/ \
LOCAL/fox
MAINTAINER= fox@FreeBSD.org
COMMENT= Embedded SSL C-Library
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool zip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-certgen \
--enable-des3 \
--enable-dh \
--enable-dsa \
--enable-dtls \
--enable-ecc \
--enable-ipv6 \
--enable-keygen \
--enable-opensslall \
--enable-opensslextra \
--enable-ripemd \
--enable-sessioncerts \
--enable-sha512 \
--enable-shared \
--enable-sni \
--enable-ssh \
--enable-static \
--enable-tls13 \
--enable-tls13-draft18
TEST_TARGET= check
CFLAGS+= -DWOLFSSL_ALT_NAMES
PORTDOCS= *
OPTIONS_DEFINE= DEBUG DOCS
DEBUG_CONFIGURE_ON= --enable-debug
post-configure:
@${REINPLACE_CMD} \
-e 's|$${prefix}/cyassl/include|$${prefix}/include/cyassl|' \
-e 's|$${prefix}/cyassl/lib|$${prefix}/lib/cyassl|' \
-e '/^pkgconfigdir/s|(libdir)|&data|' \
${WRKSRC}/Makefile
post-install-DEBUG-off:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libwolfssl.so
.include <bsd.port.mk>