git: 1ed69b1292cc - main - net/samba422: Move most *_DEPENDS where they belong

From: Mateusz Piotrowski <0mp_at_FreeBSD.org>
Date: Wed, 10 Dec 2025 22:31:17 UTC
The branch main has been updated by 0mp:

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

commit 1ed69b1292cc18087fdc9b1b8dc54e1dc42a35eb
Author:     Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-12-10 22:26:59 +0000
Commit:     Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-12-10 22:30:02 +0000

    net/samba422: Move most *_DEPENDS where they belong
    
    No functional changes intended.
---
 net/samba422/Makefile | 72 +++++++++++++++++++++++++--------------------------
 1 file changed, 35 insertions(+), 37 deletions(-)

diff --git a/net/samba422/Makefile b/net/samba422/Makefile
index 77c1b8d0bf81..294311166979 100644
--- a/net/samba422/Makefile
+++ b/net/samba422/Makefile
@@ -12,6 +12,37 @@ WWW=				https://gitlab.com/samba-freebsd/
 LICENSE=			GPLv3+
 LICENSE_FILE=			${WRKSRC}/COPYING
 
+BUILD_DEPENDS=			${_JANSSON_DEPENDS} \
+				${_LIBARCHIVE_DEPENDS} \
+				${_TASN1_DEPENDS} \
+				p5-Parse-Yapp>=0:devel/p5-Parse-Yapp
+# Unconditional dependencies which can't be switched off if present:
+# - GnuTLS: libgnutls.so and libgcrypt.so
+# - Iconv
+# - inotify
+# - libsunacl: provides NFSv4 ACL glue.
+# - libicu
+# - unwind
+# - p5-Parse-Yapp: needed for the IDL compiler.
+# - popt
+# - Readline: required by Python; USES=readline pollutes CPPFLAGS, so we add
+#   devel/readline to LIB_DEPENDS explicitly instead.
+LIB_DEPENDS=			libgnutls.so:security/gnutls \
+				libgcrypt.so:security/libgcrypt \
+				libiconv.so:converters/libiconv \
+				libinotify.so:devel/libinotify \
+				libsunacl.so:sysutils/libsunacl \
+				libreadline.so:devel/readline \
+				libpopt.so:devel/popt \
+				libunwind.so:devel/libunwind \
+				libicui18n.so:devel/icu \
+				libicuuc.so:devel/icu
+RUN_DEPENDS=			${_JANSSON_DEPENDS} \
+				${_LIBARCHIVE_DEPENDS} \
+				${_TASN1_DEPENDS}
+
+SAMBA4_BUNDLED_LIBS=		!libarchive
+
 SAMBA4_BASENAME=		samba
 SAMBA4_PORTNAME=		${SAMBA4_BASENAME}4
 SAMBA4_VERSION=			4.22.6
@@ -176,43 +207,6 @@ VFS_DESC=			VFS modules
 ZEROCONF_DESC=			Zero configuration networking
 ZEROCONF_NONE_DESC=		Zeroconf support is absent
 ##############################################################################
-# XXX: Unconditional dependencies which can't be switched off(if present in
-# the system)
-
-# Iconv(picked up unconditionaly)
-LIB_DEPENDS=			libiconv.so:converters/libiconv
-# unwind
-LIB_DEPENDS+=			libunwind.so:devel/libunwind
-# Readline(sponsored by Python)
-# XXX: USES=readline pollutes CPPFLAGS, so we explicitly put dependency
-LIB_DEPENDS+=			libreadline.so:devel/readline
-# popt
-LIB_DEPENDS+=			libpopt.so:devel/popt
-# inotify
-LIB_DEPENDS+=			libinotify.so:devel/libinotify
-# GNUTLS
-LIB_DEPENDS+=			libgnutls.so:security/gnutls
-LIB_DEPENDS+=			libgcrypt.so:security/libgcrypt
-# NFSv4 ACL glue
-LIB_DEPENDS+=			libsunacl.so:sysutils/libsunacl
-# libicu
-LIB_DEPENDS+=			libicui18n.so:devel/icu
-LIB_DEPENDS+=			libicuuc.so:devel/icu
-# Jansson
-BUILD_DEPENDS+=			jansson>=2.10:devel/jansson
-RUN_DEPENDS+=			jansson>=2.10:devel/jansson
-# tasn1
-BUILD_DEPENDS+=			libtasn1>=3.8:security/libtasn1
-RUN_DEPENDS+=			libtasn1>=3.8:security/libtasn1
-# External Samba dependencies
-# Needed for IDL compiler
-BUILD_DEPENDS+=			p5-Parse-Yapp>=0:devel/p5-Parse-Yapp
-
-# Libarchive
-SAMBA4_BUNDLED_LIBS=		!libarchive
-BUILD_DEPENDS+=			libarchive>=3.1.2:archivers/libarchive
-RUN_DEPENDS+=			libarchive>=3.1.2:archivers/libarchive
-
 ### Bundled libraries
 SAMBA4_BUNDLED_CMOCKA?=		no
 SAMBA4_BUNDLED_TALLOC?=		no
@@ -476,6 +470,10 @@ MAKE_ARGS+=			--verbose
 DEBUG_FLAGS?=			-g -ggdb3 -O0
 .endif
 
+_LIBARCHIVE_DEPENDS=	libarchive>=3.1.2:archivers/libarchive
+_JANSSON_DEPENDS=	jansson>=2.10:devel/jansson
+_TASN1_DEPENDS=		libtasn1>=3.8:security/libtasn1
+
 ##############################################################################
 .include <bsd.port.pre.mk>
 ##############################################################################