diff --git a/textproc/pecl-xlswriter/Makefile b/textproc/pecl-xlswriter/Makefile index 64032098e2a5..a9536a27a4aa 100644 --- a/textproc/pecl-xlswriter/Makefile +++ b/textproc/pecl-xlswriter/Makefile @@ -1,17 +1,27 @@ PORTNAME= xlswriter PORTVERSION= 2.0.0 +PORTREVISION= 1 CATEGORIES= textproc MAINTAINER= sunpoet@FreeBSD.org COMMENT= Efficient and fast xlsx file extension WWW= https://pecl.php.net/package/xlswriter \ https://github.com/viest/php-ext-xlswriter LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +LIB_DEPENDS= libxlsxwriter.so:math/libxlsxwriter + +#USES= localbase php:pecl ssl USES= php:pecl ssl -CONFIGURE_ARGS= --with-openssl=${OPENSSLBASE} +CFLAGS+= -I${LOCALBASE}/include/minizip +CONFIGURE_ARGS= --with-libxlsxwriter=${LOCALBASE} \ + --with-openssl=${OPENSSLBASE} + +post-patch: +# Clean up bundled libraries + @${RM} -r ${WRKSRC}/library/libxlsxwriter/ .include diff --git a/textproc/pecl-xlswriter/files/patch-libxlsxwriter b/textproc/pecl-xlswriter/files/patch-libxlsxwriter new file mode 100644 index 000000000000..8787691ae8de --- /dev/null +++ b/textproc/pecl-xlswriter/files/patch-libxlsxwriter @@ -0,0 +1,11 @@ +--- kernel/write.c.orig 2026-05-16 11:29:35 UTC ++++ kernel/write.c +@@ -655,7 +655,7 @@ workbook_file(xls_resource_write_t *self) + if (worksheet->index == self->workbook->active_sheet) + worksheet->active = 1; + +- if (worksheet->has_dynamic_arrays) ++ if (worksheet->has_dynamic_functions) + self->workbook->has_metadata = LXW_TRUE; + } +