1 ################################################################################
5 ################################################################################
7 LIBV4L_VERSION
= 1.10.1
8 LIBV4L_SOURCE
= v4l-utils-
$(LIBV4L_VERSION
).
tar.bz2
9 LIBV4L_SITE
= http
://linuxtv.org
/downloads
/v4l-utils
10 LIBV4L_INSTALL_STAGING
= YES
11 LIBV4L_DEPENDENCIES
= host-pkgconf
12 LIBV4L_CONF_OPTS
= --disable-doxygen-doc
14 # fix uclibc-ng configure/compile
15 LIBV4L_CONF_ENV
= ac_cv_prog_cc_c99
='-std=gnu99'
17 # v4l-utils components have different licences, see v4l-utils.spec for details
18 LIBV4L_LICENSE
= GPLv2
+ (utilities
), LGPLv2.1
+ (libraries
)
19 LIBV4L_LICENSE_FILES
= COPYING COPYING.libv4l lib
/libv4l1
/libv4l1-kernelcode-license.txt
21 ifeq ($(BR2_PACKAGE_ALSA_LIB
),y
)
22 LIBV4L_DEPENDENCIES
+= alsa-lib
25 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE
),y
)
26 LIBV4L_DEPENDENCIES
+= argp-standalone
30 LIBV4L_DEPENDENCIES
+= $(if
$(BR2_PACKAGE_LIBICONV
),libiconv
)
32 ifeq ($(BR2_PACKAGE_JPEG
),y
)
33 LIBV4L_DEPENDENCIES
+= jpeg
34 LIBV4L_CONF_OPTS
+= --with-jpeg
36 LIBV4L_CONF_OPTS
+= --without-jpeg
39 ifeq ($(BR2_PACKAGE_HAS_LIBGL
),y
)
40 LIBV4L_DEPENDENCIES
+= libgl
43 ifeq ($(BR2_PACKAGE_HAS_UDEV
),y
)
44 LIBV4L_CONF_OPTS
+= --with-libudev
45 LIBV4L_DEPENDENCIES
+= udev
47 LIBV4L_CONF_OPTS
+= --without-libudev
50 ifeq ($(BR2_PACKAGE_LIBGLU
),y
)
51 LIBV4L_DEPENDENCIES
+= libglu
54 ifeq ($(BR2_PACKAGE_LIBV4L_UTILS
),y
)
55 LIBV4L_CONF_OPTS
+= --enable-v4l-utils
56 # clock_gettime is used, which is provided by librt for glibc < 2.17
58 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE
),y
)
59 LIBV4L_DEPENDENCIES
+= gettext
61 ifeq ($(BR2_PACKAGE_QT5BASE
)$(BR2_PACKAGE_QT5BASE_GUI
)$(BR2_PACKAGE_QT5BASE_WIDGETS
),yyy
)
62 LIBV4L_CONF_OPTS
+= --enable-qv4l2
63 LIBV4L_DEPENDENCIES
+= qt5base
64 # protect against host version detection of moc-qt5/rcc-qt5/uic-qt5
66 ac_cv_prog_MOC
=$(HOST_DIR
)/usr
/bin
/moc \
67 ac_cv_prog_RCC
=$(HOST_DIR
)/usr
/bin
/rcc \
68 ac_cv_prog_UIC
=$(HOST_DIR
)/usr
/bin
/uic
69 else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP
),y
)
70 LIBV4L_CONF_OPTS
+= --enable-qv4l2
71 LIBV4L_DEPENDENCIES
+= qt
73 LIBV4L_CONF_OPTS
+= --disable-qv4l2
76 LIBV4L_CONF_OPTS
+= --disable-v4l-utils
79 LIBV4L_CONF_ENV
+= LIBS
="$(LIBV4L_LIBS)"
81 $(eval
$(autotools-package
))