depends  freetype2  &&
depends  libtool    "--disable-ltdl-install"  &&

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

optional_depends  g++                           \
                  "--with-magick-plus-plus"     \
                  "--without-magick-plus-plus"  \
                  "to build Magick++"           &&

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

optional_depends  libexif                      \
                  "--with-exif"                \
                  "--without-exif"             \
                  "for EXIF jpeg tag support"  &&

if [[ $GM_SNAP == y ]]
then
  optional_depends  libpng             \
                    "--with-png"       \
                    "--without-png"    \
                    "for PNG support"
fi  &&

optional_depends  X11-LIBS                                                \
                  "--with-x"                                              \
                  "--without-x"                                           \
                  "to support X display and auto some other dependecies"  &&

source  $GRIMOIRE/FUNCTIONS  &&

if  check_if_xorg_modular_libs  ;  then
  depends  libxrender
fi  &&

message  "If you are going to install cups, choose espgs instead of ghostscript."  &&

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

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

optional_depends  lcms                                    \
                  "--with-lcms"                           \
                  "--without-lcms"                        \
                  "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"
