git: cbe405604ffa - 2025Q4 - lang/php85: Update version 8.5.0=>8.5.1

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 20 Dec 2025 09:05:59 UTC
The branch 2025Q4 has been updated by bofh:

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

commit cbe405604ffaa135c6970c09d7353c009d153c97
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-12-20 08:55:48 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-12-20 09:05:35 +0000

    lang/php85: Update version 8.5.0=>8.5.1
    
    Changelog: https://www.php.net/ChangeLog-8.php#8.5.1
    
    MFH:            2025Q4
    (cherry picked from commit e7fdc2c6da109b46e5b56936f17a74a72b3befc4)
---
 lang/php85/Makefile | 17 +++++++++++------
 lang/php85/distinfo |  6 +++---
 2 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/lang/php85/Makefile b/lang/php85/Makefile
index 53b6b9034f59..a1ab876f2788 100644
--- a/lang/php85/Makefile
+++ b/lang/php85/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	php85
-DISTVERSION=	8.5.0
+DISTVERSION=	8.5.1
 PORTREVISION?=	0
 CATEGORIES?=	lang devel www
 MASTER_SITES=	PHP/distributions
@@ -18,8 +18,7 @@ PHP_VER=	85
 CONFLICTS_INSTALL?=	php[0-9][0-9]${PKGNAMESUFFIX}
 
 .if !defined(PKGNAMESUFFIX)
-LIB_DEPENDS=	libargon2.so:security/libargon2 \
-		libcapstone.so:devel/capstone \
+LIB_DEPENDS=	libcapstone.so:devel/capstone \
 		libpcre2-8.so:devel/pcre2
 
 GNU_CONFIGURE=	yes
@@ -29,8 +28,7 @@ CONFIGURE_ARGS+=	\
 		--with-config-file-scan-dir=${PREFIX}/etc/php \
 		--with-layout=GNU \
 		--with-libxml \
-		--with-openssl \
-		--with-password-argon2=${LOCALBASE}
+		--with-openssl
 
 USES+=		autoreconf:build bison ssl
 USE_GNOME=	libxml2
@@ -80,8 +78,8 @@ FPM_VARS=		PHP_SAPI+=fpm \
 			USE_RC_SUBR+=php_fpm
 IPV6_CONFIGURE_OFF=	--disable-ipv6
 LINKTHR_LIBS=		-lpthread
-NOASLR_USES=	elfctl
 MYSQLND_CONFIGURE_ON=	--enable-mysqlnd
+NOASLR_USES=	elfctl
 PCRE_BUILD_DEPENDS=	re2c>0:devel/re2c
 PCRE_CONFIGURE_ON=	--with-external-pcre=${LOCALBASE}
 PCRE_PLIST_SUB=	BUNDLED_PCRE="@comment "
@@ -136,6 +134,13 @@ PLIST_SUB+=	SAPI_INC=""
 PLIST_SUB+=	SAPI_INC="@comment "
 .  endif
 
+.  if (${OSVERSION} >= 1500000 && ${SSL_DEFAULT} == base) || (${SSL_DEFAULT:Mopenssl*} && ${OPENSSL_SHLIBVER} >= 15)
+CONFIGURE_ARGS+=	--with-openssl-argon2
+.  else
+LIB_DEPENDS+=		libargon2.so:security/libargon2
+CONFIGURE_ARGS+=	--with-password-argon2=${LOCALBASE}
+.  endif
+
 CONFIGURE_ENV+=	ac_cv_decimal_fp_supported="no" \
 		lt_cv_path_SED="sed" \
 		OPENSSL_CFLAGS="-I${OPENSSLINC}" \
diff --git a/lang/php85/distinfo b/lang/php85/distinfo
index 347a809c2401..dc316134078a 100644
--- a/lang/php85/distinfo
+++ b/lang/php85/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1763724884
-SHA256 (php-8.5.0.tar.xz) = 39cb6e4acd679b574d3d3276f148213e935fc25f90403eb84fb1b836a806ef1e
-SIZE (php-8.5.0.tar.xz) = 14314552
+TIMESTAMP = 1765959962
+SHA256 (php-8.5.1.tar.xz) = 3f5bf99ce81201f526d25e288eddb2cfa111d068950d1e9a869530054ff98815
+SIZE (php-8.5.1.tar.xz) = 14326700