git: 0f41de8c96a2 - main - lang/rust: reintroduce EXTRA_PATCHES for specific ARCH

From: Mikael Urankar <mikael_at_FreeBSD.org>
Date: Sun, 23 Jun 2024 14:53:47 UTC
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=0f41de8c96a213fc443a4594575b1439770935fb

commit 0f41de8c96a213fc443a4594575b1439770935fb
Author:     Mikael Urankar <mikael@FreeBSD.org>
AuthorDate: 2024-06-23 14:45:44 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-06-23 14:45:44 +0000

    lang/rust: reintroduce EXTRA_PATCHES for specific ARCH
    
    It was dropped in 988dc662364d9ab3d7cea82c642068a27b0c1254 but it's
    still needed.
    
    Reported by:    mandree,mmel
---
 lang/rust/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index f3019bd23342..6c4c26477814 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -122,6 +122,10 @@ _COMPONENTS+=	rustc-dev-${_PACKAGE_VERS}-${_RUST_TARGET}
 _COMPONENTS+=	rust-docs-${_PACKAGE_VERS}-wasm32-unknown-unknown rust-docs-json-${_PACKAGE_VERS}-wasm32-unknown-unknown
 .endif
 
+.if exists(${PATCHDIR}/${ARCH}${BOOTSTRAPS_SUFFIX})
+EXTRA_PATCHES+=	${PATCHDIR}/${ARCH}${BOOTSTRAPS_SUFFIX}
+.endif
+
 .ifdef QEMU_EMULATING
 IGNORE=	fails to build with qemu-user-static
 .endif