Files
ports/security/wolfssl/Makefile
T
Robert Clausecker 8ec8b8f9da security/wolfssl: fix plist on armv7 and powerpc*
Same issue as on i386.

Two unit tests fail on armv7:

 - scripts/ocsp-stapling.test
 - scripts/ocsp-stapling2.test

This should be investigated.

Approved by:	portmgr (build fix blanket)
See also:	950f31c908
2026-07-08 10:49:11 +02:00

78 lines
1.7 KiB
Makefile

PORTNAME= wolfssl
PORTVERSION= 5.9.2
CATEGORIES= security devel
MASTER_SITES= https://www.wolfssl.com/ \
LOCAL/fox
MAINTAINER= fox@FreeBSD.org
COMMENT= Embedded SSL C-Library
WWW= https://www.wolfssl.com/
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe libtool zip
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking \
--enable-certgen \
--enable-context-extra-user-data \
--enable-des3 \
--enable-dh \
--enable-dsa \
--enable-dtls \
--enable-ecc \
--enable-haproxy \
--enable-ipv6 \
--enable-keygen \
--enable-opensslall \
--enable-opensslextra \
--enable-quic \
--enable-ripemd \
--enable-sessioncerts \
--enable-sha512 \
--enable-shared \
--enable-sni \
--enable-ssh \
--enable-static \
--enable-tls13 \
--enable-tls13-draft18 \
--enable-keying-material \
--enable-all-asm
.if "${ARCH}" == "amd64"
CONFIGURE_ARGS+= --enable-aesni-with-avx
.endif
TEST_TARGET= check
CFLAGS+= -DWOLFSSL_ALT_NAMES -DWOLFSSL_GETRANDOM=1 -DWOLFSSL_TLS13_MIDDLEBOX_COMPAT
CFLAGS_i386= -DWOLFSSL_SHA224
CFLAGS_powerpc= -DWOLFSSL_SHA224
CFLAGS_powerpc64= -DWOLFSSL_SHA224
CFLAGS_powerpc64le= -DWOLFSSL_SHA224
OPTIONS_DEFINE= DEBUG DOCS
DEBUG_CONFIGURE_ON= --enable-debug
.include <bsd.port.options.mk>
.if "${ARCH}" == "i386" || ${ARCH:Marmv?} || ${ARCH:Mpowerpc*}
PLIST_SUB+= SP_H="@comment "
.else
PLIST_SUB+= SP_H=""
.endif
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>