[buildout]
extends =
  ../xz-utils/buildout.cfg
  ../zlib/buildout.cfg

parts =
  libpng12
  libpng

[libpng-common]
recipe = slapos.recipe.cmmi
shared = true
configure-options =
  --disable-static
environment =
  PATH=${xz-utils:location}/bin:%(PATH)s
  CPPFLAGS =-I${zlib:location}/include
  LDFLAGS =-L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib

[libpng12]
<= libpng-common
url = http://download.sourceforge.net/libpng/libpng-1.2.59.tar.xz
md5sum = e120f48f4e27e72255bc366c73aae1db

[libpng]
<= libpng-common
url = http://download.sourceforge.net/libpng/libpng-1.6.37.tar.xz
md5sum = 015e8e15db1eecde5f2eb9eb5b6e59e9
