-# https://sourceforge.net/projects/gphoto/files/libgphoto/2.5.23/
-md5 bf052ce815e607dc781c5b0f3c5ca5c0 libgphoto2-2.5.23.tar.bz2
-sha1 01f91d2b5d2aef7e80ab846fea4d5eb5cc67ed79 libgphoto2-2.5.23.tar.bz2
+# https://sourceforge.net/projects/gphoto/files/libgphoto/2.5.26/
+sha1 38373ef7f76e90492ffca309094487fb1474f3fe libgphoto2-2.5.26.tar.bz2
# Locally calculated hash
-sha256 d8af23364aa40fd8607f7e073df74e7ace05582f4ba13f1724d12d3c97e8852d libgphoto2-2.5.23.tar.bz2
-sha256 ebc385a0b1d477be5177ed6d9129557aa59a3ad0f26ebe7dd97ee942a0fb68ee COPYING
+sha256 7740fea3cbb78489071cdfec06c07fab528e69e27ac82734eae6a73eaeeabcd4 libgphoto2-2.5.26.tar.bz2
+sha256 ebc385a0b1d477be5177ed6d9129557aa59a3ad0f26ebe7dd97ee942a0fb68ee COPYING
#
################################################################################
-LIBGPHOTO2_VERSION = 2.5.23
+LIBGPHOTO2_VERSION = 2.5.26
LIBGPHOTO2_SOURCE = libgphoto2-$(LIBGPHOTO2_VERSION).tar.bz2
# Project is maintained on github but github tarball doesn't have
# configure, so use tarballs from SourceForge
LIBGPHOTO2_DEPENDENCIES += libusb-compat
endif
+ifeq ($(BR2_PACKAGE_LIBCURL),y)
+LIBGPHOTO2_DEPENDENCIES += libcurl
+LIBGPHOTO2_CONF_OPTS += --with-libcurl=auto
+else
+LIBGPHOTO2_CONF_OPTS += --with-libcurl=no
+endif
+
ifeq ($(BR2_PACKAGE_LIBEXIF),y)
LIBGPHOTO2_DEPENDENCIES += libexif
LIBGPHOTO2_CONF_OPTS += --with-libexif=auto