ports/www/onlyoffice-documentserver/files/patch-web-apps_build_patches_optipng-bin
Mikael Urankar e6f2735684 www/onlyoffice-documentserver: Add new port
ONLYOFFICE Document Server is an online office suite comprising viewers and
editors for texts, spreadsheets and presentations, fully compatible with
Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing
in real time.

WWW: https://www.onlyoffice.com/

Reviewed by:		bapt
Differential Revision:	https://reviews.freebsd.org/D33923
2022-01-19 08:38:26 +01:00

18 lines
962 B
Text

--- web-apps/build/patches/optipng-bin+5.1.0.patch.orig 2022-01-07 14:58:52 UTC
+++ web-apps/build/patches/optipng-bin+5.1.0.patch
@@ -0,0 +1,15 @@
+diff --git a/node_modules/optipng-bin/lib/install.js b/node_modules/optipng-bin/lib/install.js
+index 2d1db3a..643f075 100644
+--- a/node_modules/optipng-bin/lib/install.js
++++ b/node_modules/optipng-bin/lib/install.js
+@@ -10,8 +10,8 @@ bin.run(['--version']).then(() => {
+ log.warn('optipng pre-build test failed');
+ log.info('compiling from source');
+
+- binBuild.url('https://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.7/optipng-0.7.7.tar.gz', [
+- `./configure --with-system-zlib --prefix="${bin.dest()}" --bindir="${bin.dest()}"`,
++ binBuild.file('%%DISTDIR%%/optipng-0.7.7.tar.gz', [
++ `./configure --with-system-zlib --with-system-libpng --prefix="${bin.dest()}" --bindir="${bin.dest()}"`,
+ 'make install'
+ ]).then(() => {
+ log.success('optipng built successfully');