at: bump version
[feed/packages.git] / utils / uvcdynctrl / Makefile
1 #
2 # Copyright (C) 2013 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:=uvcdynctrl
11 PKG_VERSION:=0.2.4
12 PKG_REV:=2
13
14 PKG_SOURCE:=libwebcam-src-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/libwebcam
16 PKG_HASH:=91741aca11f079eb6d043e31b7da6fe1f7927c28d7496590386928f8466b4297
17 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/libwebcam-src-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/cmake.mk
23
24 define Package/uvcdynctrl
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libwebcam
28 TITLE:=Manage dynamic controls in uvcvideo
29 URL:=http://sourceforge.net/projects/libwebcam/
30 MENU:=1
31 endef
32
33 define Package/uvcdynctrl/description
34 The webcam-tools package contains the following two components:
35 - libwebcam: Webcam Library (LGPL)
36 - uvcdynctrl: Manage dynamic controls in uvcvideo (GPL)
37 endef
38
39 define Package/libwebcam
40 SECTION:=libs
41 CATEGORY:=Libraries
42 DEPENDS:=+libxml2 +libiconv-full
43 TITLE:=Webcam library
44 URL:=http://sourceforge.net/projects/libwebcam/
45 endef
46
47 define Package/libwebcam/description
48 $(call Package/uvcdynctrl/description)
49 endef
50
51 TARGET_CFLAGS += -I$(STAGING_DIR)/usr/lib/libiconv-full/include -liconv
52 TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libiconv-full/lib
53
54 define Package/uvcdynctrl/install
55 $(INSTALL_DIR) $(1)/usr/{bin,share}
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uvcdynctrl* $(1)/usr/bin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/share/uvcdynctrl/ $(1)/usr/share/
58 endef
59
60 define Package/libwebcam/install
61 $(INSTALL_DIR) $(1)/usr/lib
62 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebcam.so* $(1)/usr/lib/
63 endef
64
65 define Build/InstallDev
66 $(INSTALL_DIR) $(1)/usr/{include,lib}
67 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebcam.{a,so*} $(1)/usr/lib/
69 endef
70
71 $(eval $(call BuildPackage,uvcdynctrl))
72 $(eval $(call BuildPackage,libwebcam))