memcached: bump version to 1.4.36
[buildroot-gz.git] / package / libv4l / libv4l.mk
blobc14bedb7deb8bbb3c0ed43c7aa4e93f786b4418e
1 ################################################################################
3 # libv4l
5 ################################################################################
7 LIBV4L_VERSION = 1.12.2
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 ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
57 LIBV4L_DEPENDENCIES += gettext
58 endif
59 ifeq ($(BR2_PACKAGE_QT5BASE)$(BR2_PACKAGE_QT5BASE_GUI)$(BR2_PACKAGE_QT5BASE_WIDGETS),yyy)
60 LIBV4L_CONF_OPTS += --enable-qv4l2
61 LIBV4L_DEPENDENCIES += qt5base
62 # protect against host version detection of moc-qt5/rcc-qt5/uic-qt5
63 LIBV4L_CONF_ENV += \
64 ac_cv_prog_MOC=$(HOST_DIR)/usr/bin/moc \
65 ac_cv_prog_RCC=$(HOST_DIR)/usr/bin/rcc \
66 ac_cv_prog_UIC=$(HOST_DIR)/usr/bin/uic
67 # qt5 needs c++11 (since qt-5.7)
68 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
69 LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
70 endif
71 else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y)
72 LIBV4L_CONF_OPTS += --enable-qv4l2
73 LIBV4L_DEPENDENCIES += qt
74 else
75 LIBV4L_CONF_OPTS += --disable-qv4l2
76 endif
77 else
78 LIBV4L_CONF_OPTS += --disable-v4l-utils
79 endif
81 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
83 $(eval $(autotools-package))