Gphoto2 as a buildroot package
02 Dec 2019For everyone who needs to run gphoto on a buildroot system and wants to save some time:
Create a new package named gphoto2
in the package dir and add these two files:
package/gphoto2/Config.in
config BR2_PACKAGE_GPHOTO2
bool "gphoto2"
select BR2_PACKAGE_POPT
select BR2_PACKAGE_LIBGPHOTO2
help
gPhoto2 is a free, redistributable, ready to use set of digital
camera software applications for Unix-like systems, written by
a whole team of dedicated volunteers around the world.
It supports more than 2500 cameras.
http://www.gphoto.org/
package/gphoto2/gphoto2.mk
GPHOTO2_VERSION = 2.5.23
GPHOTO2_SOURCE = gphoto2-$(GPHOTO2_VERSION).tar.bz2
GPHOTO2_SITE = https://downloads.sourceforge.net/project/gphoto/gphoto/$(GPHOTO2_VERSION)
GPHOTO2_LICENSE_FILES = COPYING
GPHOTO2_INSTALL_STAGING = YES
GPHOTO2_DEPENDENCIES = libgphoto2 popt
GPHOTO2_CONF_ENV = POPT_CFLAGS="-I$(STAGING_DIR)/usr/include" POPT_LIBS="-L$(STAGING_DIR)/usr -lpopt"
$(eval $(autotools-package))
If running buildroot with the external_tree option, the package needs to be added to the general Config.in
file:
source "$BR2_EXTERNAL_(EXTERNAL_TREE_NAME)_PATH/package/gphoto2/Config.in"
otherwise to package/Config.in