2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/gphoto
16 PKG_MD5SUM:=fba6cf5f5d6a23569d97f4f6896d5e09
20 include $(INCLUDE_DIR)/package.mk
22 define Package/gphoto2
25 DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread
26 TITLE:=Gphoto Digital Camera Control
27 URL:=http://www.gphoto.org/
30 define Package/gphoto2/description
31 For downloading and controlling digital cameras
35 --without-libiconv-prefix \
36 --without-libintl-prefix \
39 LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
40 LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
41 LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
42 LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
43 POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
44 POPT_LIBS="$$$$LDFLAGS -lpopt" \
46 define Package/gphoto2/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gphoto2/$(PKG_NAME) $(1)/usr/bin/
51 $(eval $(call BuildPackage,gphoto2))