summaryrefslogtreecommitdiff
path: root/converters/pecl-igbinary
diff options
context:
space:
mode:
Diffstat (limited to 'converters/pecl-igbinary')
-rw-r--r--converters/pecl-igbinary/Makefile8
-rw-r--r--converters/pecl-igbinary/files/patch-php8511
2 files changed, 12 insertions, 7 deletions
diff --git a/converters/pecl-igbinary/Makefile b/converters/pecl-igbinary/Makefile
index 43c98b61c1bb..a008161cd662 100644
--- a/converters/pecl-igbinary/Makefile
+++ b/converters/pecl-igbinary/Makefile
@@ -12,15 +12,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USES= php:pecl
-.include <bsd.port.pre.mk>
-
post-patch:
-.if ${PHP_VER} >= 85
- @${REINPLACE_CMD} -e 's|ext/standard/php_smart_string.h|Zend/zend_smart_string.h|' \
- ${WRKSRC}/src/php7/php_igbinary.h
-.endif
# Install the real header files
@${CP} ${WRKSRC}/src/php7/igbinary.h ${WRKSRC}/igbinary.h
@${CP} ${WRKSRC}/src/php7/php_igbinary.h ${WRKSRC}/php_igbinary.h
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/converters/pecl-igbinary/files/patch-php85 b/converters/pecl-igbinary/files/patch-php85
new file mode 100644
index 000000000000..dad6450cd9f5
--- /dev/null
+++ b/converters/pecl-igbinary/files/patch-php85
@@ -0,0 +1,11 @@
+--- src/php7/php_igbinary.h.orig 2024-08-10 16:55:30 UTC
++++ src/php7/php_igbinary.h
+@@ -32,7 +32,7 @@ ZEND_END_MODULE_GLOBALS(igbinary)
+ #include "TSRM.h"
+ #endif
+
+-#include "ext/standard/php_smart_string.h"
++#include "Zend/zend_smart_string.h"
+
+ /** Module init function. */
+ PHP_MINIT_FUNCTION(igbinary);