Browse Source

multimedia: add v4l2tools & v4l2loopback

Signed-off-by: Michel Promonet <michel.promonet@free.fr>
lilik-openwrt-22.03
Michel Promonet 3 years ago
committed by Rosen Penev
parent
commit
c3c2d23598
3 changed files with 93 additions and 1 deletions
  1. +54
    -0
      kernel/v4l2loopback/Makefile
  2. +1
    -1
      libs/libjpeg-turbo/Makefile
  3. +38
    -0
      multimedia/v4l2tools/Makefile

+ 54
- 0
kernel/v4l2loopback/Makefile View File

@ -0,0 +1,54 @@
#
# Copyright (C) 2008-2012 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=v4l2loopback
PKG_VERSION:=master
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/umlaeute/v4l2loopback
PKG_SOURCE_VERSION:=baf9de279afc7a7c7513e9c40a0c9ff88f456af4
PKG_MIRROR_HASH:=ff834e16b13e9b38814095d95ab033ea7eae075689956e227f157e95bc075983
PKG_MAINTAINER:=Michel Promonet <michel.promonet@free.fr>
include $(INCLUDE_DIR)/package.mk
define KernelPackage/v4l2loopback
SUBMENU:=Video Support
TITLE:=v4l2loopback kernel module
FILES:=$(PKG_BUILD_DIR)/v4l2loopback.ko
DEPENDS:=+kmod-video-core +kmod-video-videobuf2
AUTOLOAD:=$(call AutoProbe,v4l2loopback)
endef
define KernelPackage/v4l2loopback/description
This module allows you to create "virtual video devices".
Normal (v4l2) applications will read these devices as if
they were ordinary video devices, but the video will not be
read from e.g. a capture card but instead it is generated
by another application.
endef
MAKE_OPTS:= \
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
M="$(PKG_BUILD_DIR)"
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
CONFIG_PACKAGE_kmod-v4l2loopback=m \
modules
endef
$(eval $(call KernelPackage,v4l2loopback))

+ 1
- 1
libs/libjpeg-turbo/Makefile View File

@ -58,7 +58,7 @@ CMAKE_OPTIONS += \
-DWITH_JAVA=OFF \
-DWITH_JPEG7=OFF \
-DWITH_JPEG8=OFF \
-DWITH_MEM_SRCDST=OFF \
-DWITH_MEM_SRCDST=ON \
-DWITH_SIMD=O$(if $(findstring mips,$(CONFIG_ARCH)),FF,N) \
-DWITH_TURBOJPEG=OFF


+ 38
- 0
multimedia/v4l2tools/Makefile View File

@ -0,0 +1,38 @@
#
# Copyright (C) 2017 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
include $(TOPDIR)/rules.mk
PKG_NAME:=v4l2tools
PKG_VERSION:=0.1.5
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2tools.git
PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=af63df7f88c1031aa5a438d175d77ca9c976e48eb55ff78a6ff6d2bd7272ac51
PKG_MAINTAINER:=Michel Promonet<michel.promonet@free.fr>
PKG_LICENSE:=Unlicense
PKG_LICENSE_FILES:=LICENCE
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
define Package/v4l2tools
SECTION:=multimedia
CATEGORY:=Multimedia
TITLE:=v4l2tools
DEPENDS:=+libstdcpp +libjpeg
URL:=https://github.com/mpromonet/v4l2tools
endef
define Package/v4l2tools/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/v4l2tools-$(PKG_VERSION) $(1)/usr/bin/v4l2tools
endef
$(eval $(call BuildPackage,v4l2tools))

Loading…
Cancel
Save