git: 7a409faf1fc3 - main - security/bitwarden-cli: add powerpc64le support

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Fri, 11 Sep 2026 12:50:01 UTC
The branch main has been updated by pkubaj:

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

commit 7a409faf1fc3a79653f4d8e8b6c296be35df74dd
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-08-31 11:58:57 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-09-11 12:49:05 +0000

    security/bitwarden-cli: add powerpc64le support
---
 security/bitwarden-cli/Makefile | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/security/bitwarden-cli/Makefile b/security/bitwarden-cli/Makefile
index 79e8ff003b9c..475d66dd48e5 100644
--- a/security/bitwarden-cli/Makefile
+++ b/security/bitwarden-cli/Makefile
@@ -16,7 +16,7 @@ LICENSE_FILE_BITWARDEN=	${WRKSRC}/LICENSE_BITWARDEN.txt
 LICENSE_FILE_GPLv3=	${WRKSRC}/LICENSE_GPL.txt
 LICENSE_PERMS_BITWARDEN=none
 
-ONLY_FOR_ARCHS=	aarch64 amd64
+ONLY_FOR_ARCHS=	aarch64 amd64 powerpc64le
 
 LIB_DEPENDS=	libbrotlidec.so:archivers/brotli \
 		libzstd.so:archivers/zstd \
@@ -67,7 +67,15 @@ PKG_NODE_CONFIGURE_ARGS=--openssl-use-def-ca-store \
 			--shared-zlib \
 			--shared-zstd \
 			--with-intl=system-icu
-NODE_ARCH=	${ARCH:S/aarch64/arm64/:S/amd64/x64/:S/i386/ia32/}
+NODE_ARCH=	${ARCH:S/aarch64/arm64/:S/amd64/x64/:S/i386/ia32/:S/powerpc64le/ppc64/}
+
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == powerpc64le
+# pin npm platform gate to x64 so the prefetched node-modules archive
+# matches the distinfo checksum generated on amd64
+NPM_FETCH_FLAGS+=	--cpu x64
+.endif
 
 post-patch:
 	# apply FreeBSD patches for node