update lua to v5.1.3, fix package descriptions, refresh patches
[openwrt/svn-archive/archive.git] / multimedia / gphoto2 / Makefile
1 #
2 # Copyright (C) 2006 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.2.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/gphoto
17 PKG_MD5SUM:=f5c1f83185db598b4ca52889964a5e84
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/gphoto2
25 SECTION:=multimedia
26 CATEGORY:=Multimedia
27 DEPENDS:=+libexif +libgphoto2 +libltdl +libpopt +libpthread
28 TITLE:=Gphoto Digital Camera Control
29 URL:=http://www.gphoto.org/
30 endef
31
32 define Package/gphoto2/description
33 For downloading and controlling digital cameras
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --without-libiconv-prefix \
39 --without-libintl-prefix \
40 , \
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 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 all install
54 endef
55
56 define Package/gphoto2/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gphoto2 $(1)/usr/bin/
59 endef
60
61
62 $(eval $(call BuildPackage,gphoto2))