Merge pull request #4940 from diizzyy/patch-95
[feed/packages.git] / libs / libuvc / Makefile
1 #
2 # Copyright (C) 2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6
7 include $(TOPDIR)/rules.mk
8
9 PKG_NAME:=libuvc
10
11 PKG_VERSION=0.0.5-20140812-$(PKG_SOURCE_VERSION)
12 PKG_RELEASE:=1
13 PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/ktossell/libuvc.git
17 PKG_SOURCE_VERSION:=2c6403405872aa865999b95ba15944295adf6c38
18
19 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_MIRROR_HASH:=93f33620e00276989211d9c129a6d8b5e0f45df8d23235ff0c53c823c52a5ef5
22 PKG_LICENSE:=BSD
23
24 PKG_INSTALL:=1
25 CMAKE_INSTALL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28 include $(INCLUDE_DIR)/cmake.mk
29
30 define Package/libuvc
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=libuvc
34 DEPENDS:=+libusb-1.0 +libjpeg
35 URL:=https://int80k.com/libuvc
36 endef
37
38 define Package/libuvc/description
39 This package contains libuvc is a cross-platform library for USB video devices,
40 built atop libusb.
41 endef
42
43 define Package/libuvc/install
44 $(INSTALL_DIR) $(1)/usr/lib
45 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/
46 endef
47
48 define Build/InstallDev
49 $(INSTALL_DIR) $(1)/usr/{include,lib}
50 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
51 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/
52 endef
53
54 $(eval $(call BuildPackage,libuvc))