You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.3 KiB

  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. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=libuvc
  8. PKG_VERSION:=0.0.6
  9. PKG_RELEASE:=1
  10. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/ktossell/libuvc/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=42175a53c1c704365fdc782b44233925e40c9344fbb7f942181c1090f06e2873
  14. PKG_LICENSE:=BSD
  15. PKG_LICENSE_FILES:=LICENSE.txt
  16. PKG_BUILD_PARALLEL:=1
  17. PKG_INSTALL:=1
  18. CMAKE_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. include $(INCLUDE_DIR)/cmake.mk
  21. define Package/libuvc
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=libuvc
  25. DEPENDS:=+libusb-1.0 +libjpeg
  26. URL:=https://int80k.com/libuvc
  27. endef
  28. define Package/libuvc/description
  29. This package contains libuvc is a cross-platform library for USB video devices,
  30. built atop libusb.
  31. endef
  32. define Package/libuvc/install
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/{include,lib}
  38. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuvc.so* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libuvc))