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.

57 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.15
  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_HASH:=ae571a227983dc9997876702a73af5431d41f287ea0f483cda897c57a6084a77
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING
  18. PKG_FIXUP:=autoreconf
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/gphoto2
  22. SECTION:=multimedia
  23. CATEGORY:=Multimedia
  24. TITLE:=Gphoto Digital Camera Control
  25. URL:=http://www.gphoto.org/
  26. DEPENDS:=+libgphoto2 +libpopt +libpthread +libreadline +libncurses +libexif +libjpeg
  27. endef
  28. define Package/gphoto2/description
  29. For downloading and controlling digital cameras
  30. endef
  31. CONFIGURE_ARGS += \
  32. --without-aalib \
  33. --without-libiconv-prefix \
  34. --without-libintl-prefix \
  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))