1
0

Makefile 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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.10.0
  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:=945a38979138997e805828a4a53e53ec
  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_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_BUILD_DEPENDS:=argp-standalone
  22. include $(INCLUDE_DIR)/uclibc++.mk
  23. include $(INCLUDE_DIR)/package.mk
  24. include $(INCLUDE_DIR)/nls.mk
  25. define Package/libv4l/Default
  26. TITLE:=Video 4 Linux
  27. URL:=http://www.linuxtv.org/
  28. endef
  29. define Package/libv4l/Default/description
  30. libv4l is a collection of libraries which adds a thin abstraction layer on
  31. top of video4linux2 devices. The purpose of this (thin) layer is to make it
  32. easy for application writers to support a wide variety of devices without
  33. having to write separate code for different devices in the same class. libv4l
  34. consists of 3 different libraries: libv4lconvert, libv4l1 and libv4l2.
  35. libv4l1 offers the (deprecated) v4l1 API on top of v4l2 devices, independent
  36. of the drivers for those devices supporting v4l1 compatibility (which many
  37. v4l2 drivers do not).
  38. libv4l2 offers the v4l2 API on top of v4l2 devices, while adding for the
  39. application transparent libv4lconvert conversion where necessary.
  40. endef
  41. define Package/libv4l
  42. $(call Package/libv4l/Default)
  43. SECTION:=libs
  44. CATEGORY:=Libraries
  45. TITLE+= wrapper libraries
  46. DEPENDS := +libpthread +librt $(ICONV_DEPENDS)
  47. endef
  48. define Package/libv4l/description
  49. $(call Package/libv4l/Default/description)
  50. endef
  51. define Package/v4l-utils
  52. $(call Package/libv4l/Default)
  53. SECTION:=utils
  54. CATEGORY:=Utilities
  55. TITLE+= utilities
  56. DEPENDS := +libv4l $(CXX_DEPENDS) $(ICONV_DEPENDS)
  57. endef
  58. define Package/v4l-utils/description
  59. $(call Package/libv4l/Default/description)
  60. This package contains the video4linux utilities.
  61. endef
  62. TARGET_CFLAGS += $(FPIC)
  63. TARGET_LDFLAGS += -largp
  64. CONFIGURE_ARGS+= \
  65. --disable-doxygen-doc \
  66. --disable-libdvbv5 \
  67. --disable-qv4l2 \
  68. --without-jpeg \
  69. define Build/InstallDev
  70. $(INSTALL_DIR) $(1)/usr/include
  71. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
  72. $(INSTALL_DIR) $(1)/usr/lib
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.{a,so*} $(1)/usr/lib/
  74. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libv4l{1,2,convert}.pc $(1)/usr/lib/pkgconfig/
  76. endef
  77. define Package/libv4l/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l{1,2,convert}.so.* $(1)/usr/lib/
  80. $(INSTALL_DIR) $(1)/usr/lib/libv4l
  81. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libv4l/v4l{1compat,2convert}.so $(1)/usr/lib/libv4l/
  82. endef
  83. define Package/v4l-utils/install
  84. $(INSTALL_DIR) $(1)/etc
  85. $(CP) $(PKG_INSTALL_DIR)/etc/rc_maps.cfg $(1)/etc/
  86. $(CP) $(PKG_INSTALL_DIR)/etc/rc_keymaps $(1)/etc/
  87. $(INSTALL_DIR) $(1)/usr/bin
  88. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{cx18,ivtv}-ctl $(1)/usr/bin/
  89. $(CP) $(PKG_INSTALL_DIR)/usr/bin/decode_tm6000 $(1)/usr/bin/
  90. $(CP) $(PKG_INSTALL_DIR)/usr/bin/ir-keytable $(1)/usr/bin/
  91. $(CP) $(PKG_INSTALL_DIR)/usr/bin/v4l2-{compliance,ctl,sysfs-path} $(1)/usr/bin/
  92. endef
  93. $(eval $(call BuildPackage,libv4l))
  94. $(eval $(call BuildPackage,v4l-utils))