depends  freetype2  &&
depends  libtool    &&

optional_depends  bzip2                \
                  "--with-bzlib"       \
                  "--without-bzlib"    \
                  "for BZLIB support"  &&

optional_depends -sub CXX gcc                           \
                  "--with-magick-plus-plus"     \
                  "--without-magick-plus-plus"  \
                  "to build Magick++"           &&

optional_depends  jasper             \
                  "--with-jp2"       \
                  "--without-jp2"    \
                  "for JPEG-2000 support"  &&

optional_depends  JPEG                \
                  "--with-jpeg"       \
                  "--without-jpeg"    \
                  "for JPEG support"  &&

optional_depends  libpng             \
                  "--with-png"       \
                  "--without-png"    \
                  "for PNG support"  &&
# X11 support
optional_depends  libx11  '--with-x' '--without-x' 'to support X display' &&
if is_depends_enabled $SPELL libx11;then
 depends libxcb  &&
 depends libxrender &&
 optional_depends  libxext  '' '' 'X extensions'
fi &&

optional_depends   ghostscript                      \
                  "--with-gslib"                              \
                  "--without-gslib"                           \
                  "for generating Postscript and PDF output"  &&

optional_depends  libwebp \
                  "--with-webp" \
                  "--without-webp" \
                  "" &&

optional_depends  libwmf                                 \
                  "--with-wmf"                           \
                  "--without-wmf"                        \
                  "for Windows Metafile Format support"  &&

optional_depends  lcms2                                   \
                  "--with-lcms2"                          \
                  "--without-lcms2"                       \
                  "for speed optimized color management"  &&

optional_depends  libxml2            \
                  "--with-xml"       \
                  "--without-xml"    \
                  "for XML support"  &&

optional_depends  perl                                      \
                  "--with-perl=${TRACK_ROOT}/usr/bin/perl"  \
                  "--without-perl"                          \
                  "to build PerlMagick"                     &&

optional_depends  tiff                \
                  "--with-tiff"       \
                  "--without-tiff"    \
                  "for TIFF support"  &&

optional_depends  zlib                \
                  "--with-zlib"       \
                  "--without-zlib"    \
                  "for ZLIB support"
