depends -sub CXX gcc        &&
depends  freetype2  &&
depends  libmng     &&
depends  pkgconfig  &&
depends  stlport    &&
depends  zziplib    &&
depends  pkgconfig  &&
depends  OPENGL     &&
depends  gtkmm2     &&

optional_depends  boost                                        \
                  '--enable-threading'                         \
                  '--disable-threading'                        \
                  'Thread support'                             &&
if is_depends_enabled $SPELL boost;then
  sub_depends boost THREAD 
fi                                                             &&

optional_depends  cegui "" "" "for sample programs"            &&
optional_depends  ode   "" "" "used in demos"                  &&

message "${SPELL_COLOR}devil${MESSAGE_COLOR} and ${SPELL_COLOR}freeimage${MESSAGE_COLOR} support conflicts,"  \
        "picking ${SPELL_COLOR}devil${MESSAGE_COLOR} will exclude ${SPELL_COLOR}freeimage${DEFAULT_COLOR}"    &&

optional_depends  devil                                        \
                  "--enable-devil"                             \
                  "--disable-devil"                            \
                  "Use DevIL for image loading (RECOMMENDED)"  &&

if ! is_depends_enabled $SPELL devil; then
  optional_depends  freeimage                                    \
                    '--enable-freeimage'                         \
                    '--disable-freeimage'                        \
                    'image viewer (NOT RECOMMENDED)'
fi  &&

optional_depends  libcg                                        \
                  "--enable-cg"                                \
                  "--disable-cg"                               \
                  "Build the nVIDIA Cg plug-in (RECOMMENDED)"  \
                  z-rejected                                  &&

optional_depends  openexr                  \
                  "--enable-openexr"       \
                  "--disable-openexr"      \
                  "Build OpenEXR plug-in"
