git: d18dcca94767 - main - net/pecl-oauth2: Fix build with php85
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Aug 2025 00:46:54 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d18dcca94767f332eba44462e8020310201f238a
commit d18dcca94767f332eba44462e8020310201f238a
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:41:47 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:07 +0000
net/pecl-oauth2: Fix build with php85
- Switch to DISTVERSION while I am here
Approved by: portmgr (blanket)
---
net/pecl-oauth2/Makefile | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/net/pecl-oauth2/Makefile b/net/pecl-oauth2/Makefile
index 07f8041c808f..cba976fdad03 100644
--- a/net/pecl-oauth2/Makefile
+++ b/net/pecl-oauth2/Makefile
@@ -1,5 +1,5 @@
PORTNAME= oauth
-PORTVERSION= 2.0.7
+DISTVERSION= 2.0.7
CATEGORIES= net pear
# https://github.com/php/pecl-web_services-oauth/pull/30
@@ -24,4 +24,16 @@ CONFLICTS= pecl-oauth-1*
PORTSCOUT= limit:^2.*
-.include <bsd.port.mk>
+.include <bsd.port.pre.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|Zend/zend_smart_string|' \
+ ${WRKSRC}/php_oauth.h
+.endif
+
+.include <bsd.port.post.mk>