@@ -29,7 +29,6 @@ DARKTABLE_DEPENDENCIES = host-gettext host-intltool host-libxml2 host-libxslt \
# Disable cmstest: needs colord.
# Disable print module: needs cups.
-# Disable Camera support: needs Gphoto2.
# Disable colord: needs libcolord-gtk.
# Disable Map View parts: needs libosmgpsmap.
# Disable OpenCL support (needs llvm compiler).
@@ -40,7 +39,6 @@ DARKTABLE_CONF_OPTS = \
-DBUILD_PRINT=OFF \
-DBUILD_USERMANUAL=OFF \
-DCUSTOM_CFLAGS=ON \
- -DUSE_CAMERA_SUPPORT=OFF \
-DUSE_COLORD=OFF \
-DUSE_GRAPHICSMAGICK=OFF \
-DUSE_KWALLET=OFF \
@@ -64,6 +62,13 @@ else
DARKTABLE_CONF_OPTS += -DUSE_FLICKR=OFF
endif
+ifeq ($(BR2_PACKAGE_LIBGPHOTO2),y)
+DARKTABLE_CONF_OPTS += -DUSE_CAMERA_SUPPORT=ON
+DARKTABLE_DEPENDENCIES += libgphoto2
+else
+DARKTABLE_CONF_OPTS += -DUSE_CAMERA_SUPPORT=OFF
+endif
+
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
DARKTABLE_CONF_OPTS += -DUSE_LIBSECRET=ON
DARKTABLE_DEPENDENCIES += libsecret
Signed-off-by: Romain Naour <romain.naour@gmail.com> Cc: Jeremy Rosen <jeremy.rosen@enst-bretagne.fr> --- package/darktable/darktable.mk | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)