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
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/gphoto2
27 DEPENDS
:=+libexif
+libgphoto2
+libltdl
+libpopt
+libpthread
28 TITLE
:=Gphoto Digital Camera Control
29 URL
:=http
://www.gphoto.org
/
32 define Package
/gphoto2
/description
33 For downloading and controlling digital cameras
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
38 --without-libiconv-prefix \
39 --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" \
51 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
56 define Package
/gphoto2
/install
57 $(INSTALL_DIR
) $(1)/usr
/bin
58 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/gphoto2
$(1)/usr
/bin
/
62 $(eval
$(call BuildPackage
,gphoto2
))