git: 07669030a4a2 - main - Mk: fix checksum when makesum is defined

From: Mathieu Arnold <mat_at_FreeBSD.org>
Date: Wed, 16 Sep 2026 19:31:14 UTC
The branch main has been updated by mat:

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

commit 07669030a4a2b20912d450a5c88f609da29ae34c
Author:     Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2026-09-16 19:29:36 +0000
Commit:     Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2026-09-16 19:29:36 +0000

    Mk: fix checksum when makesum is defined
    
    Fixes regression from 076687302bffe156fb9b379c2eb622f0ac2e711e
    
    Reported by:    eduardo
---
 Mk/bsd.port.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 0c8dc40cae4f..e43c07487f4e 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -3928,8 +3928,9 @@ delete-distfiles-list:
 _CHECKSUM_INIT_ENV= \
 	dp_SHA256=${SHA256}
 
-.    if !target(makesum)
 _CKSUMFILES_FILE=${WRKDIR}/.cksumfiles
+
+.    if !target(makesum)
 # Some port change the options with OPTIONS_*_FORCE when make(makesum) to be
 # able to add all distfiles in one go.
 # For this to work, we need to call the do-fetch script directly here so that