瀏覽代碼

gvfs: enable gphoto2

Enable gphoto2 if libgphoto2 and libgudev are available

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Fabrice Fontaine 6 年之前
父節點
當前提交
4439eda857
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      package/gvfs/gvfs.mk

+ 7 - 1
package/gvfs/gvfs.mk

@@ -23,7 +23,6 @@ GVFS_CONF_OPTS = \
 	--disable-gdu \
 	--disable-goa \
 	--disable-google \
-	--disable-gphoto2 \
 	--disable-keyring \
 	--disable-libmtp \
 	--disable-udisks2
@@ -99,6 +98,13 @@ else
 GVFS_CONF_OPTS += --disable-afp
 endif
 
+ifeq ($(BR2_PACKAGE_LIBGPHOTO2)$(BR2_PACKAGE_LIBGUDEV),yy)
+GVFS_DEPENDENCIES += libgphoto2 libgudev
+GVFS_CONF_OPTS += --enable-gphoto2
+else
+GVFS_CONF_OPTS += --disable-gphoto2
+endif
+
 ifeq ($(BR2_PACKAGE_LIBGTK3),y)
 GVFS_CONF_OPTS += --enable-gtk
 GVFS_DEPENDENCIES += libgtk3