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.

58 lines
1.5 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.23
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=@SF/gphoto
  14. PKG_HASH:=df87092100e7766c9d0a4323217c91908a9c891c0d3670ebf40b76903be458d1
  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. LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
  37. LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
  38. LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
  39. LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
  40. POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
  41. POPT_LIBS="$$$$LDFLAGS -lpopt" \
  42. define Package/gphoto2/install
  43. $(INSTALL_DIR) $(1)/usr/bin
  44. $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  45. endef
  46. $(eval $(call BuildPackage,gphoto2))