git: ab480990aa3d - 2024Q2 - devel/cargo-leptos: Fix build on i386

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 28 Apr 2024 21:51:41 UTC
The branch 2024Q2 has been updated by yuri:

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

commit ab480990aa3ddc96b5be7cde7995671ef2c88e49
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-04-28 21:50:46 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-04-28 21:51:34 +0000

    devel/cargo-leptos: Fix build on i386
    
    Reported by:    fallout
    
    (cherry picked from commit 78fa3fa7eb911e50f37c2d1e86eff4c215691965)
---
 devel/cargo-leptos/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/devel/cargo-leptos/Makefile b/devel/cargo-leptos/Makefile
index 33f2ae10b634..bf4d05f5c548 100644
--- a/devel/cargo-leptos/Makefile
+++ b/devel/cargo-leptos/Makefile
@@ -15,6 +15,8 @@ USES=		cargo
 USE_GITHUB=	yes
 GH_ACCOUNT=	leptos-rs
 
+CARGO_FEATURES=	${ARCH:S/i386/YES/:C/^[a-z].*//:S/YES/sse sse2/} # add sse sse2 features only on i386
+
 CARGO_CRATES=	addr2line-0.21.0 \
 		adler-1.0.2 \
 		adler32-1.2.0 \