2 # Copyright (C) 2014 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
11 PKG_VERSION
=0.0.5-20140812-$(PKG_SOURCE_VERSION
)
13 PKG_MAINTAINER
:=Roger D
<rogerdammit@gmail.com
>
16 PKG_SOURCE_URL
:=https
://github.com
/ktossell
/libuvc.git
17 PKG_SOURCE_VERSION
:=2c6403405872aa865999b95ba15944295adf6c38
19 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
26 include $(INCLUDE_DIR
)/package.mk
27 include $(INCLUDE_DIR
)/cmake.mk
33 DEPENDS
:=+libusb-1.0
+libjpeg
34 URL
:=https
://int80k.com
/libuvc
37 define Package
/libuvc
/description
38 This package contains libuvc is a cross-platform library for USB video devices
,
42 define Package
/libuvc
/install
43 $(INSTALL_DIR
) $(1)/usr
/lib
44 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuvc.so
* $(1)/usr
/lib
/
47 define Build
/InstallDev
48 $(INSTALL_DIR
) $(1)/usr
/{include,lib
}
49 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/* $(1)/usr
/include/
50 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libuvc.so
* $(1)/usr
/lib
/
53 $(eval
$(call BuildPackage
,libuvc
))