batman-adv: automatically rebuild components when the config changes
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=gphoto2
11 PKG_VERSION:=2.4.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/gphoto
16 PKG_MD5SUM:=a0bd7629040735f16e510b63edf386dd
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/gphoto2
23 SECTION:=multimedia
24 CATEGORY:=Multimedia
25 DEPENDS:=+libgphoto2 +libpopt +libpthread
26 TITLE:=Gphoto Digital Camera Control
27 URL:=http://www.gphoto.org/
28 endef
29
30 define Package/gphoto2/description
31 For downloading and controlling digital cameras
32 endef
33
34 CONFIGURE_ARGS += \
35 --without-aalib \
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))