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.

69 lines
1.8 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=uvcdynctrl
  9. PKG_VERSION:=0.2.5
  10. PKG_RELEASE:=2
  11. PKG_SOURCE:=libwebcam-src-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=@SF/libwebcam
  13. PKG_HASH:=3ca5199c7b8398b655a7c38e3ad4191bb053b1486503287f20d30d141bda9d41
  14. PKG_BUILD_DIR:=$(BUILD_DIR)/libwebcam-$(PKG_VERSION)
  15. PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
  16. CMAKE_INSTALL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. include $(INCLUDE_DIR)/nls.mk
  20. define Package/uvcdynctrl
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libwebcam
  24. TITLE:=Manage dynamic controls in uvcvideo
  25. LICENSE:=GPL-3.0-or-later
  26. LICENSE_FILES:=uvcdynctrl/COPYING
  27. URL:=https://sourceforge.net/projects/libwebcam/
  28. MENU:=1
  29. endef
  30. define Package/uvcdynctrl/description
  31. The webcam-tools package contains the following two components:
  32. - libwebcam: Webcam Library (LGPL)
  33. - uvcdynctrl: Manage dynamic controls in uvcvideo (GPL)
  34. endef
  35. define Package/libwebcam
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. DEPENDS:=+libxml2 $(ICONV_DEPENDS)
  39. TITLE:=Webcam library
  40. LICENSE:=LGPL-3.0-or-later
  41. LICENSE_FILES:=libwebcam/COPYING.LESSER
  42. URL:=https://sourceforge.net/projects/libwebcam/
  43. endef
  44. define Package/libwebcam/description
  45. $(call Package/uvcdynctrl/description)
  46. endef
  47. define Package/uvcdynctrl/install
  48. $(INSTALL_DIR) $(1)/usr/{bin,share}
  49. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/uvcdynctrl* $(1)/usr/bin/
  50. $(CP) $(PKG_INSTALL_DIR)/usr/share/uvcdynctrl/ $(1)/usr/share/
  51. endef
  52. define Package/libwebcam/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libwebcam.so* $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,uvcdynctrl))
  57. $(eval $(call BuildPackage,libwebcam))