if [ "$GNUCASH_HTML_ENG" == "webkitgtk" ]; then
  depends webkitgtk "--with-html-engine=webkit" 
else
   depends  gtkhtml2 "--with-html-engine=gtkhtml"
fi &&

depends  gconf2                         &&
depends  glib2                          &&
depends  gtk+2                          &&
depends  guile                          &&
depends  libart_lgpl                    &&
depends  libglade2                      &&
depends  libgnomeprint                  &&
depends  libgnomeui                     &&
depends  -sub "GTK2" goffice            &&
depends  libgsf                         &&

optional_depends  aqbanking                 \
                  '--enable-hbci'           \
                  '--disable-hbci'          \
                  'to enable HBCI support'  &&

optional_depends  libofx                         \
                  '--enable-ofx'                 \
                  '--disable-ofx'                \
                  'to compile with ofx support'  &&

depends  libxml2                        &&
depends  pango                          &&


### ALL PAST THIS POINT NOT UPSTREAM DEPENDENCY###

#Required, upstream provider states this may be needed
# if guile and gnucash are not acting nice together:
# http://wiki.gnucash.org/wiki/Building#slib_Issues
depends  slib                           &&

optional_depends  texinfo                        \
                  ''                             \
                  ''                             \
                  'to build the documentation'   &&

optional_depends  bzip2                          \
                  ''                             \
                  ''                             \
                  'to build with BZip2 support'  &&

optional_depends  doxygen                               \
                  '--enable-doxygen'                    \
                  '--disable-doxygen'                   \
                  'to enable documentation generation'  &&

if is_depends_enabled $SPELL doxygen; then
optional_depends  graphviz                             \
                  '--enable-dot'                       \
                  '--disable-dot'                      \
                  'to enable graphs in documentation'
fi  &&

  optional_depends  libdbi \
                    ""     \
                    "--disable-dbi" \
                    "to build the libdbi backed" &&

optional_depends  finance-quote                                         \
                  ''                                                    \
                  ''                                                    \
                  'for stock price quotes and currency exchange rates'  
