[packages] libgphoto2, gphoto2: update to 2.4.8
[openwrt/svn-archive/archive.git] / multimedia / gphoto2 / Makefile
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gphoto2
11 PKG_VERSION:=2.4.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/gphoto
16 PKG_MD5SUM:=401e403ea6e8301d6c87cbe7cd892b8b
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/gphoto2
24 SECTION:=multimedia
25 CATEGORY:=Multimedia
26 DEPENDS:=+libgphoto2 +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-aalib \
37 --without-libiconv-prefix \
38 --without-libintl-prefix \
39
40 CONFIGURE_VARS += \
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" \
47
48 define Package/gphoto2/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
51 endef
52
53 $(eval $(call BuildPackage,gphoto2))