Browse Source

v4l2tools: add vpx dependency if library installed

Signed-off-by: Michel Promonet <michel.promonet@free.fr>
lilik-openwrt-22.03
Michel Promonet 3 years ago
committed by Rosen Penev
parent
commit
8f976fccf1
1 changed files with 11 additions and 3 deletions
  1. +11
    -3
      multimedia/v4l2tools/Makefile

+ 11
- 3
multimedia/v4l2tools/Makefile View File

@ -5,13 +5,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=v4l2tools PKG_NAME:=v4l2tools
PKG_VERSION:=0.1.5
PKG_VERSION:=0.1.7
PKG_RELEASE:=$(AUTORELEASE) PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2tools.git PKG_SOURCE_URL:=https://github.com/mpromonet/v4l2tools.git
PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_VERSION:=v$(PKG_VERSION)
PKG_MIRROR_HASH:=af63df7f88c1031aa5a438d175d77ca9c976e48eb55ff78a6ff6d2bd7272ac51
PKG_MIRROR_HASH:=ded23eef11efbba8467ba58c5e69071ab4b34c0d29ad1a4fdc96683cfe2aff3c
PKG_MAINTAINER:=Michel Promonet<michel.promonet@free.fr> PKG_MAINTAINER:=Michel Promonet<michel.promonet@free.fr>
PKG_LICENSE:=Unlicense PKG_LICENSE:=Unlicense
@ -20,14 +20,22 @@ PKG_LICENSE_FILES:=LICENCE
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk
PKG_CONFIG_DEPENDS := CONFIG_PACKAGE_libvpx
define Package/v4l2tools define Package/v4l2tools
SECTION:=multimedia SECTION:=multimedia
CATEGORY:=Multimedia CATEGORY:=Multimedia
TITLE:=v4l2tools TITLE:=v4l2tools
DEPENDS:=+libstdcpp +libjpeg
DEPENDS:=+libstdcpp +libjpeg +PACKAGE_libvpx:libvpx
URL:=https://github.com/mpromonet/v4l2tools URL:=https://github.com/mpromonet/v4l2tools
endef endef
CMAKE_OPTIONS += \
-DWITH_JPEG=ON \
-DWITH_VPX=$(if $(CONFIG_PACKAGE_libvpx),ON,OFF) \
-DWITH_X264=OFF \
-DWITH_X265=OFF
define Package/v4l2tools/install define Package/v4l2tools/install
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/v4l2tools-$(PKG_VERSION) $(1)/usr/bin/v4l2tools $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/v4l2tools-$(PKG_VERSION) $(1)/usr/bin/v4l2tools


Loading…
Cancel
Save