source $GRIMOIRE/CMAKE_DEPENDS &&
depends cairo     &&
depends curl      &&
depends exiv2     &&
depends gconf2    &&
depends gdk-pixbuf2 &&
depends glade2    &&
depends glib2     &&
depends gtk+3     &&
depends JPEG      &&
depends json-glib &&
depends lcms2     &&
depends libpng    &&
depends libraw    &&
depends librsvg2  &&
depends libxslt   &&
depends pango     &&
depends pugixml   &&
depends sdl       &&
depends sqlite    &&
depends tiff      &&
depends zlib "-DWITH_ZLIB=on" &&

if [[ "$DARKTABLE_BRANCH" == "scm" ]]; then
  depends git
fi &&
suggest_depends kwallet "" "" "use kwallet as password storage backend" &&
optional_depends gnome-keyring "-DUSE_GNOME_KEYRING=ON" "-DUSE_GNOME_KEYRING=OFF" "build gnome-keyring password storage backend" &&
optional_depends flickurl      "-DUSE_FLICKR=ON"        "-DUSE_FLICKR=OFF"        "support for flickr" &&
optional_depends libxml2       "-DUSE_XMLLINT=ON"       "-DUSE_XMLLINT=OFF"       "use xmllint" &&
optional_depends GETTEXT       "-DUSE_NLS=ON"           "-DUSE_NLS=OFF"           "for native language support" &&
optional_depends gphoto2       "-DUSE_CAMERA_SUPPORT=ON" "-DUSE_CAMERA_SUPPORT=OFF" "for camera support" &&
optional_depends colord        "-DUSE_COLORD=ON"        "-DUSE_COLORD=OFF"        "for colord support" &&
optional_depends libsoup       "-DUSE_GEO=ON"           "-DUSE_GEO=OFF"           "for OSM GPS mapping support" &&
optional_depends openjpeg      "-DUSE_OPENJPEG=ON"      "-DUSE_OPENJPEG=OFF"      "for JPEG2000 support" &&
optional_depends graphicsmagick "-DUSE_GRAPHICSMAGICK=ON" "-DUSE_GRAPHICSMAGICK=OFF" "use GraphicsMagick for image import" &&
optional_depends imagemagick    "-DUSE_IMAGEMAGICK=ON"    "-DUSE_IMAGEMAGICK=OFF"    "use ImageMagick for image import" &&
optional_depends lua           "-DLUA53=ON"             "-DLUA53=OFF"             "for lua scripting" &&
optional_depends libwebp        "-DUSE_WEBP=ON"           "-DUSE_WEBP=OFF"        "for webp export" &&
optional_depends -sub CLANG llvm "-DUSE_OPENCL=ON"        "-DUSE_OPENCL=OFF"      "for OpenCL support" &&
optional_depends lensfun        "-DUSE_LENSFUN=ON"        "-DUSE_LENSFUN=OFF"     "for LensFun support" &&
optional_depends libavif        "-DUSE_AVIF=ON"           "-DUSE_AVIF=OFF"        "for AV1 support" &&
optional_depends gmic           "-DUSE_GMIC=ON"           "-DUSE_GMIC=OFF"        "for gmic support" &&
optional_depends libsecret      "-DUSE_LIBSECRET=ON"      "-DUSE_LIBSECRET=OFF"   "for password storage support" &&
optional_depends openexr        "-DUSE_OPENEXR=ON"        "-DUSE_OPENEXR=OFF"     "for OpenEXR support" &&
optional_depends iso-codes      ""                        ""                      "for language names in perferences"
