# libdmtx - open source software for reading and writing Data Matrix barcodes.
# http://www.libdmtx.org/

[buildout]
extends =
  ../bzip2/buildout.cfg
  ../imagemagick/buildout.cfg
  ../jbigkit/buildout.cfg
  ../patch/buildout.cfg
  ../zlib/buildout.cfg
parts =
  libdmtx
  dmtx-utils

[libdmtx]
recipe = slapos.recipe.cmmi
url = http://prdownloads.sourceforge.net/libdmtx/libdmtx-0.7.4.tar.bz2
md5sum = d3a4c0becd92895eb606dbdb78b023e2
configure-options =
  --disable-static

[dmtx-utils]
recipe = slapos.recipe.cmmi
url = http://prdownloads.sourceforge.net/libdmtx/dmtx-utils-0.7.4.tar.bz2
md5sum = b132ab9fb1d289869469b8bb4959a08a
configure-options =
  --disable-static
patch-options = -p1
patches =
  ${:_profile_base_location_}/imagemagick-7.patch#e0ec31041be5a4f3551ab84696671110
environment =
  PATH=${patch:location}/bin:${pkgconfig:location}/bin:%(PATH)s
  PKG_CONFIG_PATH=${imagemagick:location}/lib/pkgconfig:${libdmtx:location}/lib/pkgconfig
  CPPFLAGS=-I${libdmtx:location}/include
  LDFLAGS=-Wl,-rpath=${jbigkit:location}/lib -Wl,-rpath=${bzip2:location}/lib -Wl,-rpath=${zlib:location}/lib
