From c17097fa3fad9dd1c59b116640c251f3b194af1b Mon Sep 17 00:00:00 2001 From: Tijl Coosemans Date: Thu, 2 Jan 2025 15:10:24 +0100 Subject: [PATCH] security/mbedtls3: Remove more traces of libeverest and libp256m These 3rdparty libraries aren't used in the default configuration. PR: 283782 --- security/mbedtls3/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/security/mbedtls3/Makefile b/security/mbedtls3/Makefile index 84cec01d0833..1fa601e1b99d 100644 --- a/security/mbedtls3/Makefile +++ b/security/mbedtls3/Makefile @@ -1,5 +1,6 @@ PORTNAME= mbedtls DISTVERSION= 3.6.2 +PORTREVISION= 1 CATEGORIES= security devel MASTER_SITES= https://github.com/Mbed-TLS/${PORTNAME}/releases/download/${DISTNAME}/ PKGNAMESUFFIX= 3 @@ -29,15 +30,16 @@ PORTSCOUT= limit:^${DISTVERSION:R:S/./\./g}\. PLIST_SUB= DISTVERSION=${DISTVERSION} +post-patch: + @${REINPLACE_CMD} '/(everest)/d;/(p256-m)/d' \ + ${WRKSRC}/3rdparty/CMakeLists.txt + pre-configure: @${WRKSRC}/scripts/config.py set MBEDTLS_SSL_DTLS_SRTP @${WRKSRC}/scripts/config.py set MBEDTLS_THREADING_C @${WRKSRC}/scripts/config.py set MBEDTLS_THREADING_PTHREAD post-install: - ${RM} -r ${STAGEDIR}${PREFIX}/include/everest - ${RM} ${STAGEDIR}${PREFIX}/lib/libeverest.a \ - ${STAGEDIR}${PREFIX}/lib/libp256m.a @cd ${STAGEDIR}${PREFIX}/bin && for f in *; do \ ${MV} "$$f" "mbedtls_$$f"; \ done