git: 01ef1f06e90f - main - shells/bash-completion: Fix 482cadcb07419678f225eb4e1a941e0dfb43a4ea

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 19 Oct 2025 17:41:48 UTC
The branch main has been updated by sunpoet:

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

commit 01ef1f06e90f2adddad647020408b4af1dc721bb
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-10-19 17:41:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-10-19 17:41:34 +0000

    shells/bash-completion: Fix 482cadcb07419678f225eb4e1a941e0dfb43a4ea
    
    PR:             289914
    Reported by:    vanilla
---
 shells/bash-completion/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/shells/bash-completion/Makefile b/shells/bash-completion/Makefile
index 756ddedf803e..dd14f6ab1477 100644
--- a/shells/bash-completion/Makefile
+++ b/shells/bash-completion/Makefile
@@ -16,9 +16,6 @@ TEST_DEPENDS=	runtest:misc/dejagnu \
 
 USES=		autoreconf gmake pathfix tar:xz
 
-.if ${ARCH} == riscv64
-EXTRACT_CMD=	${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
-.endif
 GNU_CONFIGURE=	yes
 NO_ARCH=	yes
 
@@ -43,6 +40,12 @@ BASH_STATIC_RUN_DEPENDS=bash:shells/bash-static
 FREEBSD_RUN_DEPENDS=	bash-completion-freebsd>=0:shells/bash-completion-freebsd
 ZFS_RUN_DEPENDS=	bash-completion-zfs>=0:shells/bash-completion-zfs
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == riscv64
+EXTRACT_CMD=	${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
+.endif
+
 post-configure:
 	@${REINPLACE_CMD} \
 		-e 's|/etc/ssl/openssl.cnf|${PREFIX}& &|g' \