[buildout]
extends =
  ../gnu-config/buildout.cfg
  ../libjpeg/buildout.cfg
  ../patch/buildout.cfg

parts =
  jasper

[jasper]
recipe = slapos.recipe.cmmi
shared = true
url = http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
md5sum = a342b2b4495b3e1394e161eb5d85d754
patch-options = -p1
patches =
  ${:_profile_base_location_}/jasper_1.900.1-debian1-2.4+deb8u3.patch#1cf61d1ebc87d355523d3484169671f7
pre-configure = cp -f ${gnu-config:location}/config.sub ${gnu-config:location}/config.guess acaux
configure-options =
  --disable-static
  --enable-shared
  --disable-opengl
environment =
  CPPFLAGS=-I${libjpeg:location}/include
  LDFLAGS=-L${libjpeg:location}/lib -Wl,-rpath=${libjpeg:location}/lib
  PATH=${patch:location}/bin:%(PATH)s
