git: 968855c1ec27 - main - net/routinator: enable on i386

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 16 Aug 2024 11:54:29 UTC
The branch main has been updated by pkubaj:

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

commit 968855c1ec27face4501edc2c5472ed10740bbc8
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2024-08-14 09:12:56 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2024-08-16 11:54:20 +0000

    net/routinator: enable on i386
    
    SSE2 is required to build.
---
 net/routinator/Makefile | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/net/routinator/Makefile b/net/routinator/Makefile
index ee725d7a72f6..1aaf2713c92f 100644
--- a/net/routinator/Makefile
+++ b/net/routinator/Makefile
@@ -11,7 +11,7 @@ WWW=		https://github.com/NLnetLabs/routinator
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64 powerpc64le
+ONLY_FOR_ARCHS=	aarch64 amd64 i386 powerpc64 powerpc64le
 ONLY_FOR_ARCHS_REASON=	ring crate not ported to other architectures
 
 RUN_DEPENDS=	rsync:net/rsync
@@ -39,6 +39,12 @@ OPTIONS_SUB=	yes
 ASPA_DESC=	(Experimental) enable aspa support
 ASPA_VARS=	CARGO_FEATURES+=aspa
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386
+RUSTFLAGS+=	-C target-feature=+sse2
+.endif
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/routinator
 	${INSTALL_MAN} ${WRKSRC}/doc/routinator.1 \