git: 40cfc7ce0e0c - main - security/pecl-crypto: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:56 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=40cfc7ce0e0cce9d4e0f1c6b22e17b321aed2e90
commit 40cfc7ce0e0cce9d4e0f1c6b22e17b321aed2e90
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:45:13 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:08 +0000
security/pecl-crypto: Fix build with php85
- Switch to DISTVERSION while I am here
Approved by: portmgr (blanket)
---
security/pecl-crypto/Makefile | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/security/pecl-crypto/Makefile b/security/pecl-crypto/Makefile
index 5c1b4703308d..14ca7f4259f3 100644
--- a/security/pecl-crypto/Makefile
+++ b/security/pecl-crypto/Makefile
@@ -1,5 +1,5 @@
PORTNAME= crypto
-PORTVERSION= 0.3.2
+DISTVERSION= 0.3.2
CATEGORIES= security
MAINTAINER= gasol.wu@gmail.com
@@ -15,10 +15,20 @@ CONFIGURE_ARGS= --with-crypto
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
CFLAGS+= -Wno-error=incompatible-function-pointer-types
.endif
-.include <bsd.port.mk>
+.if ${PHP_VER} >= 85
+.if ${OPSYS} == FreeBSD
+CFLAGS+= -Wno-error=int-conversion
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string.h|Zend/zend_smart_string.h|' \
+ ${WRKSRC}/phpc/phpc.h
+.endif
+
+.include <bsd.port.post.mk>