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.

59 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.14
  11. PKG_RELEASE:=1
  12. PKG_MAINTAINER:=Leonardo Medici <leonardo_medici@me.com>
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  14. PKG_SOURCE_URL:=@SF/gphoto
  15. PKG_MD5SUM:=6c6a21b5e879330cdd71ef92dce36399
  16. PKG_HASH:=9302d02fb472d4936988382b7277ccdc4edaf7ede56c490278912ffd0627699c
  17. PKG_LICENSE:=GPL-2.0
  18. PKG_LICENSE_FILES:=COPYING
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/gphoto2
  23. SECTION:=multimedia
  24. CATEGORY:=Multimedia
  25. TITLE:=Gphoto Digital Camera Control
  26. URL:=http://www.gphoto.org/
  27. DEPENDS:=+libgphoto2 +libpopt +libpthread +libreadline +libncurses +libexif +libjpeg
  28. endef
  29. define Package/gphoto2/description
  30. For downloading and controlling digital cameras
  31. endef
  32. CONFIGURE_ARGS += \
  33. --without-aalib \
  34. --without-libiconv-prefix \
  35. --without-libintl-prefix \
  36. CONFIGURE_VARS += \
  37. LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
  38. LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
  39. LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
  40. LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
  41. POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
  42. POPT_LIBS="$$$$LDFLAGS -lpopt" \
  43. define Package/gphoto2/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
  46. endef
  47. $(eval $(call BuildPackage,gphoto2))