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.

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