diff options
Diffstat (limited to 'net/pecl-oauth2/Makefile')
-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> |