# FreeType - a Free, High-Quality, and Portable Font Engine
# http://freetype.org/

[buildout]
extends =
  ../bzip2/buildout.cfg
  ../libpng/buildout.cfg
  ../zlib/buildout.cfg

parts =
  freetype

[freetype]
recipe = slapos.recipe.cmmi
url = http://download.savannah.gnu.org/releases/freetype/freetype-2.5.0.1.tar.bz2
md5sum = c72e9010b1d986d556fc0b2b5fcbf31a
depends =
  ${libpng:so_version}
configure-options =
  --disable-static
environment =
  CPPFLAGS=-I${bzip2:location}/include -I${zlib:location}/include
  LDFLAGS=-L${bzip2:location}/lib -Wl,-rpath=${bzip2:location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
  PATH=${libpng:location}/bin:%(PATH)s

[freetype:cygwin]
url = http://cygwin.mirrorcatalogs.com/release/X11/freetype2/freetype2-2.4.12-1-src.tar.bz2
md5sum = 9fabeee8347eff093966543331e066aa
configure-command = cygport
configure-options =
  freetype.cygport
  download
  prep
  compile
  install
make-binary = true