pygtk requires python 2.5
[openwrt/svn-archive/archive.git] / multimedia / gphoto2 / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=gphoto2
12 PKG_VERSION:=2.4.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/gphoto
17 PKG_MD5SUM:=fba6cf5f5d6a23569d97f4f6896d5e09
18
19 PKG_FIXUP = libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gphoto2
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread
27 TITLE:=Gphoto Digital Camera Control
28 URL:=http://www.gphoto.org/
29 endef
30
31 define Package/gphoto2/description
32 For downloading and controlling digital cameras
33 endef
34
35 CONFIGURE_ARGS += \
36 --without-libiconv-prefix \
37 --without-libintl-prefix \
38
39 CONFIGURE_VARS += \
40 LIBGPHOTO2_CFLAGS="$$$$CFLAGS -I$(STAGING_DIR)/usr/include/gphoto2 $$$$CPPFLAGS" \
41 LIBGPHOTO2_LIBS="$$$$LDFLAGS -lgphoto2 -lgphoto2_port -lltdl" \
42 LIBEXIF_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
43 LIBEXIF_LIBS="$$$$LDFLAGS -lexif" \
44 POPT_CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
45 POPT_LIBS="$$$$LDFLAGS -lpopt" \
46
47 define Package/gphoto2/install
48 $(INSTALL_DIR) $(1)/usr/bin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/gphoto2/$(PKG_NAME) $(1)/usr/bin/
50 endef
51
52 $(eval $(call BuildPackage,gphoto2))