git: ea0258cc5ec5 - 2024Q2 - www/trunk: Fix build on i386
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Apr 2024 21:18:17 UTC
The branch 2024Q2 has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ea0258cc5ec530ffda3c18ea1a497cdb2e481db7
commit ea0258cc5ec530ffda3c18ea1a497cdb2e481db7
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-04-28 21:17:22 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-04-28 21:18:12 +0000
www/trunk: Fix build on i386
Reported by: fallout
(cherry picked from commit 8406919d42c474bc7d338945694b2ce7def36d24)
---
www/trunk/Makefile | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/trunk/Makefile b/www/trunk/Makefile
index 712882775440..7a0bcd8c973a 100644
--- a/www/trunk/Makefile
+++ b/www/trunk/Makefile
@@ -20,6 +20,8 @@ USES= cargo
USE_GITHUB= yes
GH_ACCOUNT= thedodd
+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 \
aes-0.8.4 \
@@ -463,6 +465,12 @@ OPENSSLLIB= /usr/lib
PLIST_FILES= bin/${PORTNAME}
+#.include <bsd.port.pre.mk>
+
+#.if ${ARCH} == amd64
+#CARGO_FEATURES= ${ARCH:S/i386/sse sse2/}
+#.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}