2008-02-26 19:24:37 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
2006-09-17 11:11:41 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=gphoto2
|
2009-09-24 20:16:15 +00:00
|
|
|
PKG_VERSION:=2.4.7
|
2006-09-17 11:11:41 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_SOURCE_URL:=@SF/gphoto
|
2009-09-24 20:16:15 +00:00
|
|
|
PKG_MD5SUM:=a0bd7629040735f16e510b63edf386dd
|
2006-09-17 11:11:41 +00:00
|
|
|
|
2008-02-26 19:24:37 +00:00
|
|
|
PKG_FIXUP = libtool
|
2006-09-17 11:11:41 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/gphoto2
|
|
|
|
SECTION:=multimedia
|
|
|
|
CATEGORY:=Multimedia
|
2009-07-14 00:56:08 +00:00
|
|
|
DEPENDS:=+libgphoto2 +libpopt +libpthread
|
2006-09-17 11:11:41 +00:00
|
|
|
TITLE:=Gphoto Digital Camera Control
|
2006-10-03 17:25:17 +00:00
|
|
|
URL:=http://www.gphoto.org/
|
2006-09-17 11:11:41 +00:00
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/gphoto2/description
|
2008-02-26 19:24:37 +00:00
|
|
|
For downloading and controlling digital cameras
|
2007-10-14 04:32:56 +00:00
|
|
|
endef
|
|
|
|
|
2008-02-26 19:24:37 +00:00
|
|
|
CONFIGURE_ARGS += \
|
2009-05-28 11:05:21 +00:00
|
|
|
--without-aalib \
|
2008-02-26 19:24:37 +00:00
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-libintl-prefix \
|
2006-09-17 11:11:41 +00:00
|
|
|
|
2008-02-26 19:24:37 +00:00
|
|
|
CONFIGURE_VARS += \
|
|
|
|
LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
|
|
|
|
LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
|
|
|
|
LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
|
|
|
|
LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
|
|
|
|
POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
|
|
|
|
POPT_LIBS="$$$$LDFLAGS -lpopt" \
|
2006-09-17 11:11:41 +00:00
|
|
|
|
|
|
|
define Package/gphoto2/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2008-02-26 19:24:37 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gphoto2/$(PKG_NAME) $(1)/usr/bin/
|
2006-09-17 11:11:41 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,gphoto2))
|