depends  bison      &&  # Is this really needed?
depends  pkgconfig  &&

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


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 "" "" "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
