diff --git a/www/pecl-solr/Makefile b/www/pecl-solr/Makefile index 99e85ddeaf97..31c99f777898 100644 --- a/www/pecl-solr/Makefile +++ b/www/pecl-solr/Makefile @@ -1,20 +1,27 @@ PORTNAME= solr PORTVERSION= 2.8.1 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= gaod@hychen.org COMMENT= PHP extension for Apache Solr WWW= https://pecl.php.net/package/solr LICENSE= PHP301 LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl USES= gnome php:build,pecl pkgconfig USE_GNOME= libxml2 CONFIGURE_ARGS= LIBXML_CFLAGS=-I${LOCALBASE}/include/libxml2 \ LIBXML_LIBS=-L${LOCALBASE}/include/libxml2 -.include +.include + +.if ${PHP_VER} >= 85 +EXTRA_PATCHES= ${PATCHDIR}/extra-src__php_solr.h +. endif + +.include diff --git a/www/pecl-solr/files/extra-src__php_solr.h b/www/pecl-solr/files/extra-src__php_solr.h new file mode 100644 index 000000000000..00fde3640747 --- /dev/null +++ b/www/pecl-solr/files/extra-src__php_solr.h @@ -0,0 +1,11 @@ +--- src/php_solr.h.orig 2025-11-11 22:20:54.799208000 +0800 ++++ src/php_solr.h 2025-11-11 22:21:15.328071000 +0800 +@@ -126,7 +126,7 @@ + #define solr_ce_Serializable zend_ce_serializable + #define solr_ce_ArrayAccess zend_ce_arrayaccess + #define solr_ce_Iterator zend_ce_iterator +-#define solr_ce_Exception zend_exception_get_default() ++#define solr_ce_Exception zend_ce_exception + /* }}} */ + + extern zend_object_handlers solr_object_handlers;