git: 3b9232fd746d - main - devel/pecl-sync: Fix build with php85

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 02 Aug 2025 00:46:48 UTC
The branch main has been updated by bofh:

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

commit 3b9232fd746d803ce5ce4e7b99c5441d72ad5302
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2025-08-02 00:26:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2025-08-02 00:46:03 +0000

    devel/pecl-sync: Fix build with php85
    
    - Switch to DISTVERSION while I am here
    
    Approved by:    portmgr (blanket)
---
 devel/pecl-sync/Makefile | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/devel/pecl-sync/Makefile b/devel/pecl-sync/Makefile
index c28b5621f36a..b1b7efd9dc8f 100644
--- a/devel/pecl-sync/Makefile
+++ b/devel/pecl-sync/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	sync
-PORTVERSION=	1.1.2
+DISTVERSION=	1.1.2
 CATEGORIES=	devel
 
 MAINTAINER=	gasol.wu@gmail.com
@@ -11,4 +11,10 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 USES=		php:pecl
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD
+CFLAGS+=	-Wno-error=int-conversion
+.endif
+
+.include <bsd.port.post.mk>