# 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
