git: e01e0ed77d12 - main - sysutils/coreutils: Fix malformed conditional expression

From: Li-Wen Hsu <lwhsu_at_FreeBSD.org>
Date: Tue, 27 Feb 2024 06:03:02 UTC
The branch main has been updated by lwhsu:

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

commit e01e0ed77d124c83e8a533356b32312d458eef21
Author:     Li-Wen Hsu <lwhsu@FreeBSD.org>
AuthorDate: 2024-02-27 06:02:22 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2024-02-27 06:02:22 +0000

    sysutils/coreutils: Fix malformed conditional expression
---
 sysutils/coreutils/Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/sysutils/coreutils/Makefile b/sysutils/coreutils/Makefile
index cc98dfcb555c..86d9611eee5a 100644
--- a/sysutils/coreutils/Makefile
+++ b/sysutils/coreutils/Makefile
@@ -24,9 +24,6 @@ GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
 # bugs.freebsd.org/160060
 CONFIGURE_ARGS=	--program-prefix=g	\
 		--program-transform-name=s/stat/nustat/
-.if ${ARCH} == i386
-CONFIGURE_ARGS+=	--disable-year2038
-.endif
 CONFIGURE_ENV=	FORCE_UNSAFE_CONFIGURE=1
 
 CONFLICTS_INSTALL=	gdu geneweb gexpr rubygem-god # bin/gdu bin/gexpr bin/god bin/gwc
@@ -48,4 +45,10 @@ post-install:
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/g* \
 		${STAGEDIR}${PREFIX}/libexec/coreutils/libstdbuf.so
 
+.include <bsd.port.options.mk>
+
+.if ${ARCH} == i386
+CONFIGURE_ARGS+=	--disable-year2038
+.endif
+
 .include <bsd.port.mk>