diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-08-02 02:41:47 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-08-02 02:46:07 +0200 |
commit | d18dcca94767f332eba44462e8020310201f238a (patch) | |
tree | 61713740d116301a4a0e48213937378983903fa2 | |
parent | net-im/pecl-stomp2: Fix build with php85 (diff) |
net/pecl-oauth2: Fix build with php85
- Switch to DISTVERSION while I am here
Approved by: portmgr (blanket)
-rw-r--r-- | net/pecl-oauth2/Makefile | 16 |
1 files 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> |