2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/gphoto
17 PKG_MD5SUM:=f5c1f83185db598b4ca52889964a5e84
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 include $(INCLUDE_DIR)/package.mk
25 define Package/gphoto2
28 DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread
29 TITLE:=Gphoto Digital Camera Control
30 URL:=http://www.gphoto.org/
33 define Package/gphoto2/description
34 For downloading and controlling digital cameras
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --without-libiconv-prefix \
40 --without-libintl-prefix \
42 LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
43 LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
44 LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
45 LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
46 POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
47 POPT_LIBS="$$$$LDFLAGS -lpopt" \
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
57 define Package/gphoto2/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(CP) $(PKG_INSTALL_DIR)/usr/bin/gphoto2 $(1)/usr/bin/
63 $(eval $(call BuildPackage,gphoto2))