diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-08-02 02:45:13 +0200 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-08-02 02:46:08 +0200 |
commit | 40cfc7ce0e0cce9d4e0f1c6b22e17b321aed2e90 (patch) | |
tree | 32ba4d272116fd22fe1fcf869fc13bd88abf5038 | |
parent | net/pecl-oauth2: Fix build with php85 (diff) |
security/pecl-crypto: Fix build with php85
- Switch to DISTVERSION while I am here
Approved by: portmgr (blanket)
-rw-r--r-- | security/pecl-crypto/Makefile | 16 |
1 files 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> |