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.

44 lines
1.2 KiB

  1. # This software is in the public domain, furnished "as is", without technical
  2. # support, and with no warranty, express or implied, as to its usefulness for
  3. # any purpose.
  4. include $(TOPDIR)/rules.mk
  5. PKG_NAME:=v4l2tools
  6. PKG_VERSION:=0.1.7
  7. PKG_RELEASE:=$(AUTORELEASE)
  8. PKG_SOURCE_PROTO:=git
  9. PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2tools.git
  10. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  11. PKG_MIRROR_HASH:=ded23eef11efbba8467ba58c5e69071ab4b34c0d29ad1a4fdc96683cfe2aff3c
  12. PKG_MAINTAINER:=Michel Promonet<michel.promonet@free.fr>
  13. PKG_LICENSE:=Unlicense
  14. PKG_LICENSE_FILES:=LICENCE
  15. include $(INCLUDE_DIR)/package.mk
  16. include $(INCLUDE_DIR)/cmake.mk
  17. PKG_CONFIG_DEPENDS := CONFIG_PACKAGE_libvpx
  18. define Package/v4l2tools
  19. SECTION:=multimedia
  20. CATEGORY:=Multimedia
  21. TITLE:=v4l2tools
  22. DEPENDS:=+libstdcpp +libjpeg +PACKAGE_libvpx:libvpx
  23. URL:=https://github.com/mpromonet/v4l2tools
  24. endef
  25. CMAKE_OPTIONS += \
  26. -DWITH_JPEG=ON \
  27. -DWITH_VPX=$(if $(CONFIG_PACKAGE_libvpx),ON,OFF) \
  28. -DWITH_X264=OFF \
  29. -DWITH_X265=OFF
  30. define Package/v4l2tools/install
  31. $(INSTALL_DIR) $(1)/usr/bin
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/v4l2tools-$(PKG_VERSION) $(1)/usr/bin/v4l2tools
  33. endef
  34. $(eval $(call BuildPackage,v4l2tools))