depends  bison      &&  # Is this really needed?
depends  pkgconfig  &&
depends  libxml2 &&
# make icu usage explicit
if is_depends_enabled libxml2 icu;then
  depends icu
fi &&


# test kernel version
local  GPH_KVER &&
GPH_KVER=`uname -r |cut -c-3`    &&
if [[ $GPH_KVER != "2.4" ]];then
  optional_depends  DEVICE-MANAGER  "udevscriptdir=$INSTALL_ROOT/lib/udev"  ""  \
                          "for kernel UDEV support"
else
  optional_depends  hotplug  ""  ""  "for kernel hotplug support"
fi  &&

optional_depends  lockdev  "" "" "serial port locking" &&
optional_depends  gettext  "--enable-nls" "--disable-nls" "NLS support" &&
optional_depends  libexif  "--with-exif"  "--without-exif"  \
      "extracts additional image information provided by most cameras"  &&

optional_depends JPEG "" "" "for JPEG mangling support" &&
optional_depends gd "" "" "for GD conversion support" &&

optional_depends  libtool  "--with-ltdl"  "--without-ltdl"  \
      "an alternative way of opening shared libraries"  &&

optional_depends libusb-compat "" "" "enable use of cameras connected though the USB port"  &&

optional_depends  dbus     ""  ""  "for dbus support"          &&
optional_depends  hal     ""  ""  "for HAL support"          &&

# Currently broken, disabling it
# even if with current doxygen disabling hack that would be impossible to build anyway
#optional_depends gtk-doc                         \
#                 "--enable-docs"                 \
#                 "--disable-docs"                \
#                 "Build documentation with gtk-doc"  &&

if [ $DOXYGEN = 'y' ]; then
  depends doxygen
fi
