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,24 +1,34 @@ PORTNAME= crypto -PORTVERSION= 0.3.2 +DISTVERSION= 0.3.2 CATEGORIES= security MAINTAINER= gasol.wu@gmail.com COMMENT= Objective wrapper for OpenSSL Crypto Library WWW= https://pecl.php.net/package/crypto LICENSE= PHP301 USES= compiler:c++11-lang php:pecl ssl CONFIGURE_ARGS= --with-crypto CFLAGS+= -I${OPENSSLINC} LDFLAGS+= -L${OPENSSLLIB} -.include +.include .if ${OPSYS} == FreeBSD CFLAGS+= -Wno-error=incompatible-function-pointer-types .endif -.include +.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