package/x11r7/xdriver_xf86-video-siliconmotion: bump version to 1.7.9
[buildroot-gz.git] / package / libv4l / libv4l.mk
blobd557414268696ce8eb7846d591cdf11023b3212e
1 ################################################################################
3 # libv4l
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
23 endif
25 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
26 LIBV4L_DEPENDENCIES += argp-standalone
27 LIBV4L_LIBS += -largp
28 endif
30 LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
32 ifeq ($(BR2_PACKAGE_JPEG),y)
33 LIBV4L_DEPENDENCIES += jpeg
34 LIBV4L_CONF_OPTS += --with-jpeg
35 else
36 LIBV4L_CONF_OPTS += --without-jpeg
37 endif
39 ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
40 LIBV4L_DEPENDENCIES += libgl
41 endif
43 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
44 LIBV4L_CONF_OPTS += --with-libudev
45 LIBV4L_DEPENDENCIES += udev
46 else
47 LIBV4L_CONF_OPTS += --without-libudev
48 endif
50 ifeq ($(BR2_PACKAGE_LIBGLU),y)
51 LIBV4L_DEPENDENCIES += libglu
52 endif
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
57 LIBV4L_LIBS += -lrt
58 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
59 LIBV4L_DEPENDENCIES += gettext
60 endif
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
65 LIBV4L_CONF_ENV += \
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
72 else
73 LIBV4L_CONF_OPTS += --disable-qv4l2
74 endif
75 else
76 LIBV4L_CONF_OPTS += --disable-v4l-utils
77 endif
79 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
81 $(eval $(autotools-package))