git: 07679900322e - main - Mk: add a BUILD_RUN_DEPENDS variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Sep 2026 12:10:58 UTC
The branch main has been updated by mat:
URL: https://cgit.FreeBSD.org/ports/commit/?id=07679900322e1a1ac7aca93d7fae94be87adde90
commit 07679900322e1a1ac7aca93d7fae94be87adde90
Author: Mathieu Arnold <mat@FreeBSD.org>
AuthorDate: 2026-09-14 13:31:19 +0000
Commit: Mathieu Arnold <mat@FreeBSD.org>
CommitDate: 2026-09-23 12:10:18 +0000
Mk: add a BUILD_RUN_DEPENDS variable
Add BUILD_RUN_DEPENDS as a syntastic sugar for adding dependencies to
both BUILD_DEPENDS and RUN_DEPENDS without side effects.
Differential Revision: https://reviews.freebsd.org/D59664
---
CHANGES | 6 ++++++
Mk/bsd.port.mk | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/CHANGES b/CHANGES
index 47b126bef06c..9436e9972f5f 100644
--- a/CHANGES
+++ b/CHANGES
@@ -10,6 +10,12 @@ in the release notes and/or placed into UPDATING.
All ports committers are allowed to commit to this file.
+20260923:
+AUTHOR: mat@FreeBSD.org
+
+ Add BUILD_RUN_DEPENDS as a syntastic sugar for adding dependencies to both
+ BUILD_DEPENDS and RUN_DEPENDS without side effects.
+
20260914:
AUTHOR: dteske@FreeBSD.org
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 798d4830db74..b115e2c5df28 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -4043,6 +4043,11 @@ package-noinstall: package
# Dependency checking
################################################################
+. for sp in ${_PKGS}
+BUILD_DEPENDS${_SP.${sp}}+= ${BUILD_RUN_DEPENDS${_SP.${sp}}}
+RUN_DEPENDS${_SP.${sp}}+= ${BUILD_RUN_DEPENDS${_SP.${sp}}}
+. endfor
+
. if !target(depends)
depends: pkg-depends extract-depends patch-depends lib-depends fetch-depends build-depends run-depends