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.

115 lines
3.4 KiB

  1. #
  2. # Copyright (C) 2009-2015 OpenWrt.org
  3. # Copyright (C) 2009 David Cooper <dave@kupesoft.com>
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=v4l-utils
  10. PKG_VERSION:=1.6.2
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=http://www.linuxtv.org/downloads/v4l-utils
  14. PKG_MD5SUM:=9cb3c178f937954e65bf30920af433ef
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_LICENSE:=GPL-2.0 LGPL-2.1
  17. PKG_LICENSE_FILES:=COPYING COPYING.libv4l
  18. PKG_USE_MIPS16:=0
  19. PKG_INSTALL:=1
  20. PKG_BUILD_DEPENDS:=argp-standalone
  21. include $(INCLUDE_DIR)/uclibc++.mk
  22. include $(INCLUDE_DIR)/package.mk
  23. include $(INCLUDE_DIR)/nls.mk
  24. define Package/libv4l/Default
  25. TITLE:=Video 4 Linux
  26. URL:=http://www.linuxtv.org/
  27. endef
  28. define Package/libv4l/Default/description
  29. libv4l is a collection of libraries which adds a thin abstraction layer on
  30. top of video4linux2 devices. The purpose of this (thin) layer is to make it
  31. easy for application writers to support a wide variety of devices without
  32. having to write separate code for different devices in the same class. libv4l
  33. consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
  34. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
  35. of the drivers for those devices supporting v4l1 compatibility (which many
  36. v4l2 drivers do not).
  37. libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
  38. application transparent libv4lconvert conversion where necessary.
  39. endef
  40. define Package/libv4l
  41. $(call Package/libv4l/Default)
  42. SECTION:=libs
  43. CATEGORY:=Libraries
  44. TITLE+= wrapper libraries
  45. DEPENDS := +libpthread +librt $(ICONV_DEPENDS)
  46. endef
  47. define Package/libv4l/description
  48. $(call Package/libv4l/Default/description)
  49. endef
  50. define Package/v4l-utils
  51. $(call Package/libv4l/Default)
  52. SECTION:=utils
  53. CATEGORY:=Utilities
  54. TITLE+= utilities
  55. DEPENDS := +libv4l $(CXX_DEPENDS) $(ICONV_DEPENDS)
  56. endef
  57. define Package/v4l-utils/description
  58. $(call Package/libv4l/Default/description)
  59. This package contains the video4linux utilities.
  60. endef
  61. TARGET_CFLAGS += $(FPIC) -std=gnu99
  62. TARGET_LDFLAGS += -largp
  63. CONFIGURE_ARGS+= \
  64. --disable-doxygen-doc \
  65. --disable-libdvbv5 \
  66. --disable-qv4l2 \
  67. --without-jpeg \
  68. define Build/InstallDev
  69. $(INSTALL_DIR) $(1)/usr/include
  70. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.{a,so*} $(1)/usr/lib/
  73. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  74. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libv4l{1,2,convert}.pc $(1)/usr/lib/pkgconfig/
  75. endef
  76. define Package/libv4l/install
  77. $(INSTALL_DIR) $(1)/usr/lib
  78. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.so.* $(1)/usr/lib/
  79. $(INSTALL_DIR) $(1)/usr/lib/libv4l
  80. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l/v4l{1compat,2convert}.so $(1)/usr/lib/libv4l/
  81. endef
  82. define Package/v4l-utils/install
  83. $(INSTALL_DIR) $(1)/etc
  84. $(CP) $(PKG_INSTALL_DIR)/etc/rc_maps.cfg $(1)/etc/
  85. $(CP) $(PKG_INSTALL_DIR)/etc/rc_keymaps $(1)/etc/
  86. $(INSTALL_DIR) $(1)/usr/bin
  87. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{cx18,ivtv}-ctl $(1)/usr/bin/
  88. $(CP) $(PKG_INSTALL_DIR)/usr/bin/decode_tm6000 $(1)/usr/bin/
  89. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ir-keytable $(1)/usr/bin/
  90. $(CP) $(PKG_INSTALL_DIR)/usr/bin/v4l2-{compliance,ctl,sysfs-path} $(1)/usr/bin/
  91. endef
  92. $(eval $(call BuildPackage,libv4l))
  93. $(eval $(call BuildPackage,v4l-utils))