2 # Copyright (C) 2006-2010 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
:=a08a93a425cde03ca8f9bade83bbd26a
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/gphoto2
26 TITLE
:=Gphoto Digital Camera Control
27 URL
:=http
://www.gphoto.org
/
28 DEPENDS
:=+libgphoto2
+libpopt
+libpthread
31 define Package
/gphoto2
/description
32 For downloading and controlling digital cameras
37 --without-libiconv-prefix \
38 --without-libintl-prefix \
41 LIBGPHOTO2_CFLAGS
="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
42 LIBGPHOTO2_LIBS
="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
43 LIBEXIF_CFLAGS
="$$$$CFLAGS $$$$CPPFLAGS" \
44 LIBEXIF_LIBS
="$$$$LDFLAGS -lexif" \
45 POPT_CFLAGS
="$$$$CFLAGS $$$$CPPFLAGS" \
46 POPT_LIBS
="$$$$LDFLAGS -lpopt" \
48 define Package
/gphoto2
/install
49 $(INSTALL_DIR
) $(1)/usr
/bin
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/$(PKG_NAME
) $(1)/usr
/bin
/
53 $(eval
$(call BuildPackage
,gphoto2
))