harfbuzz: bump version to 1.4.5
[buildroot-gz.git] / package / libv4l / libv4l.mk
blob4fec14f3841cd1b8b1363c0e004db49a1ea536d2
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 # 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 # qt5 needs c++11 (since qt-5.7)
70 ifeq ($(BR2_PACKAGE_QT5_VERSION_LATEST),y)
71 LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=c++11"
72 endif
73 else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y)
74 LIBV4L_CONF_OPTS += --enable-qv4l2
75 LIBV4L_DEPENDENCIES += qt
76 else
77 LIBV4L_CONF_OPTS += --disable-qv4l2
78 endif
79 else
80 LIBV4L_CONF_OPTS += --disable-v4l-utils
81 endif
83 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
85 $(eval $(autotools-package))