e766864f15
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10527 3c298f89-4303-0410-b956-a3cf2f4a3e73
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
#
|
|
# Copyright (C) 2006-2008 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
# $Id$
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=gphoto2
|
|
PKG_VERSION:=2.4.0
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|
PKG_SOURCE_URL:=@SF/gphoto
|
|
PKG_MD5SUM:=5fd1f711ca806adb687b33c55964d898
|
|
|
|
PKG_FIXUP = libtool
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/gphoto2
|
|
SECTION:=multimedia
|
|
CATEGORY:=Multimedia
|
|
DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread
|
|
TITLE:=Gphoto Digital Camera Control
|
|
URL:=http://www.gphoto.org/
|
|
endef
|
|
|
|
define Package/gphoto2/description
|
|
For downloading and controlling digital cameras
|
|
endef
|
|
|
|
CONFIGURE_ARGS += \
|
|
--without-libiconv-prefix \
|
|
--without-libintl-prefix \
|
|
|
|
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" \
|
|
|
|
define Package/gphoto2/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/gphoto2/$(PKG_NAME) $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,gphoto2))
|