You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2006-2012 OpenWrt.org
  3. # Copyright (C) 2017 Leonardo Medici
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=gphoto2
  10. PKG_VERSION:=2.5.26
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=@SF/gphoto
  14. PKG_HASH:=7653213b05329c1dc2779efea3eff00504e12011436587aedc9aaa1e8665ab2f
  15. PKG_MAINTAINER:=Leonardo Medici <leonardo_medici@me.com>
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. PKG_BUILD_PARALLEL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. include $(INCLUDE_DIR)/nls.mk
  23. define Package/gphoto2
  24. SECTION:=multimedia
  25. CATEGORY:=Multimedia
  26. TITLE:=Gphoto Digital Camera Control
  27. URL:=http://www.gphoto.org/
  28. DEPENDS:=+libgphoto2 +libpopt +libpthread +libreadline +libncurses +libexif +libjpeg
  29. endef
  30. define Package/gphoto2/description
  31. For downloading and controlling digital cameras
  32. endef
  33. CONFIGURE_ARGS += \
  34. --without-aalib
  35. CONFIGURE_VARS += \
  36. POPT_CFLAGS="-I$(STAGING_DIR)/usr/include" \
  37. POPT_LIBS="-L$(STAGING_DIR)/usr/lib -lpopt"
  38. define Package/gphoto2/install
  39. $(INSTALL_DIR) $(1)/usr/bin
  40. $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  41. endef
  42. $(eval $(call BuildPackage,gphoto2))