|
@@ -4,19 +4,12 @@
|
|
#
|
|
#
|
|
################################################################################
|
|
################################################################################
|
|
|
|
|
|
-LIBV4L_VERSION = 1.24.1
|
|
|
|
-LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
|
|
|
|
|
|
+LIBV4L_VERSION = 1.28.1
|
|
|
|
+LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.xz
|
|
LIBV4L_SITE = https://linuxtv.org/downloads/v4l-utils
|
|
LIBV4L_SITE = https://linuxtv.org/downloads/v4l-utils
|
|
LIBV4L_INSTALL_STAGING = YES
|
|
LIBV4L_INSTALL_STAGING = YES
|
|
LIBV4L_DEPENDENCIES = host-pkgconf
|
|
LIBV4L_DEPENDENCIES = host-pkgconf
|
|
-LIBV4L_CONF_OPTS = --disable-doxygen-doc --disable-qvidcap --disable-v4l2-tracer
|
|
|
|
-# needed to get utils/qv4l link flags right
|
|
|
|
-LIBV4L_AUTORECONF = YES
|
|
|
|
-# add host-gettext for AM_ICONV macro
|
|
|
|
-LIBV4L_DEPENDENCIES += host-gettext
|
|
|
|
-
|
|
|
|
-# fix uclibc-ng configure/compile
|
|
|
|
-LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
|
|
+LIBV4L_CONF_OPTS = -Ddoxygen-doc=disabled -Dqvidcap=disabled -Dv4l2-tracer=disabled
|
|
|
|
|
|
# v4l-utils components have different licences, see v4l-utils.spec for details
|
|
# v4l-utils components have different licences, see v4l-utils.spec for details
|
|
LIBV4L_LICENSE = GPL-2.0+ (utilities), LGPL-2.1+ (libraries)
|
|
LIBV4L_LICENSE = GPL-2.0+ (utilities), LGPL-2.1+ (libraries)
|
|
@@ -34,10 +27,10 @@ endif
|
|
LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
+LIBV4L_CONF_OPTS += -Djpeg=enabled
|
|
LIBV4L_DEPENDENCIES += jpeg
|
|
LIBV4L_DEPENDENCIES += jpeg
|
|
-LIBV4L_CONF_OPTS += --with-jpeg
|
|
|
|
else
|
|
else
|
|
-LIBV4L_CONF_OPTS += --without-jpeg
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Djpeg=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
@@ -45,10 +38,10 @@ LIBV4L_DEPENDENCIES += libgl
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
-LIBV4L_CONF_OPTS += --with-libudev --with-udevdir=/usr/lib/udev
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dlibdvbv5=enabled -Dudevdir=/usr/lib/udev
|
|
LIBV4L_DEPENDENCIES += udev
|
|
LIBV4L_DEPENDENCIES += udev
|
|
else
|
|
else
|
|
-LIBV4L_CONF_OPTS += --without-libudev
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dlibdvbv5=disabled
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLU),y)
|
|
ifeq ($(BR2_PACKAGE_LIBGLU),y)
|
|
@@ -56,33 +49,25 @@ LIBV4L_DEPENDENCIES += libglu
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
|
|
ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
|
|
-LIBV4L_CONF_OPTS += --enable-v4l-utils
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dv4l-utils=true
|
|
LIBV4L_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
|
LIBV4L_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
|
|
-# v4l2-ctl needs c++11, use gnu++11 for typeof support
|
|
|
|
-LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++11"
|
|
|
|
-
|
|
|
|
# IR BPF decoder support needs toolchain with linux-headers >= 3.18
|
|
# IR BPF decoder support needs toolchain with linux-headers >= 3.18
|
|
# libelf and clang support
|
|
# libelf and clang support
|
|
-LIBV4L_CONF_OPTS += --disable-bpf
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dbpf=disabled
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE)$(BR2_PACKAGE_QT5BASE_GUI)$(BR2_PACKAGE_QT5BASE_WIDGETS),yyy)
|
|
ifeq ($(BR2_PACKAGE_QT5BASE)$(BR2_PACKAGE_QT5BASE_GUI)$(BR2_PACKAGE_QT5BASE_WIDGETS),yyy)
|
|
-LIBV4L_CONF_OPTS += --enable-qv4l2
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dqv4l2=enabled
|
|
LIBV4L_DEPENDENCIES += qt5base
|
|
LIBV4L_DEPENDENCIES += qt5base
|
|
-# protect against host version detection of moc-qt5/rcc-qt5/uic-qt5
|
|
|
|
-LIBV4L_CONF_ENV += \
|
|
|
|
- ac_cv_prog_MOC=$(HOST_DIR)/bin/moc \
|
|
|
|
- ac_cv_prog_RCC=$(HOST_DIR)/bin/rcc \
|
|
|
|
- ac_cv_prog_UIC=$(HOST_DIR)/bin/uic
|
|
|
|
else
|
|
else
|
|
-LIBV4L_CONF_OPTS += --disable-qv4l2
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dqv4l2=disabled
|
|
endif
|
|
endif
|
|
else
|
|
else
|
|
-LIBV4L_CONF_OPTS += --disable-v4l-utils
|
|
|
|
|
|
+LIBV4L_CONF_OPTS += -Dv4l-utils=false
|
|
endif
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
|
|
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
|
|
LIBV4L_DEPENDENCIES += sdl2_image
|
|
LIBV4L_DEPENDENCIES += sdl2_image
|
|
endif
|
|
endif
|
|
|
|
|
|
-$(eval $(autotools-package))
|
|
|
|
|
|
+$(eval $(meson-package))
|