From 8001788d0ca6dcf43284aee4ac2e3570bc38c97d Mon Sep 17 00:00:00 2001 From: Kazuhiko SHIOZAKI Date: Thu, 23 Jul 2020 16:03:18 +0200 Subject: [PATCH] stack/erp5: add jpegoptim and optipng. --- component/jpegoptim/buildout.cfg | 15 +++++++++++++++ component/optipng/buildout.cfg | 18 ++++++++++++++++++ stack/erp5/buildout.cfg | 4 ++++ 3 files changed, 37 insertions(+) create mode 100644 component/jpegoptim/buildout.cfg create mode 100644 component/optipng/buildout.cfg diff --git a/component/jpegoptim/buildout.cfg b/component/jpegoptim/buildout.cfg new file mode 100644 index 000000000..414a71967 --- /dev/null +++ b/component/jpegoptim/buildout.cfg @@ -0,0 +1,15 @@ +# Jpegoptim - utility to optimize jpeg files. +# https://www.kokkonen.net/tjko/projects.html + +[buildout] +extends = + ../libjpeg/buildout.cfg + +[jpegoptim] +recipe = slapos.recipe.cmmi +url = https://www.kokkonen.net/tjko/src/jpegoptim-1.4.6.tar.gz +md5sum = 844c572d69fd5af75f0616b86e63962d +configure-options = + --with-libjpeg=${libjpeg:location} +environment = + LDFLAGS=-Wl,-rpath=${libjpeg:location}/lib diff --git a/component/optipng/buildout.cfg b/component/optipng/buildout.cfg new file mode 100644 index 000000000..88c1f728a --- /dev/null +++ b/component/optipng/buildout.cfg @@ -0,0 +1,18 @@ +# OptiPNG is a PNG optimizer that recompresses image files to a smaller size, without losing any information. +# http://optipng.sourceforge.net/ + +[buildout] +extends = + ../libpng/buildout.cfg + ../zlib/buildout.cfg + +[optipng] +recipe = slapos.recipe.cmmi +url = http://prdownloads.sourceforge.net/optipng/optipng-0.7.7.tar.gz +md5sum = 211101965baf42fd24a2aa990b7e842e +configure-options = + --with-system-libpng + --with-system-zlib +environment = + CPPFLAGS=-I${libpng:location}/include -I${zlib:location}/include + LDFLAGS=-L${libpng:location}/lib -Wl,-rpath=${libpng:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib diff --git a/stack/erp5/buildout.cfg b/stack/erp5/buildout.cfg index 04b1689bc..96472d3b0 100644 --- a/stack/erp5/buildout.cfg +++ b/stack/erp5/buildout.cfg @@ -14,6 +14,7 @@ extends = ../../component/findutils/buildout.cfg ../../component/librsvg/buildout.cfg ../../component/imagemagick/buildout.cfg + ../../component/jpegoptim/buildout.cfg ../../component/kumo/buildout.cfg ../../component/libdmtx/buildout.cfg ../../component/matplotlib/buildout.cfg @@ -21,6 +22,7 @@ extends = ../../component/statsmodels/buildout.cfg ../../component/h5py/buildout.cfg ../../component/ocropy/buildout.cfg + ../../component/optipng/buildout.cfg ../../component/pandas/buildout.cfg ../../component/percona-toolkit/buildout.cfg ../../component/patch/buildout.cfg @@ -240,11 +242,13 @@ link-binary = ${grep:location}/bin/grep ${imagemagick:location}/bin/convert ${imagemagick:location}/bin/identify + ${jpegoptim:location}/bin/jpegoptim ${jsl:location}/bin/jsl ${librsvg:location}/bin/rsvg-convert ${mariadb:location}/bin/mysql ${mariadb:location}/bin/mysqldump ${openssl:location}/bin/openssl + ${optipng:location}/bin/optipng ${poppler:location}/bin/pdfinfo ${poppler:location}/bin/pdftohtml ${poppler:location}/bin/pdftotext -- 2.25.1