The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / libv4l / libv4l.mk
1 ################################################################################
2 #
3 # libv4l
4 #
5 ################################################################################
6
7 LIBV4L_VERSION = 1.6.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
13
14 # v4l-utils components have different licences, see v4l-utils.spec for details
15 LIBV4L_LICENSE = GPLv2+ (utilities), LGPLv2.1+ (libraries)
16 LIBV4L_LICENSE_FILES = COPYING COPYING.libv4l lib/libv4l1/libv4l1-kernelcode-license.txt
17
18 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
19 LIBV4L_DEPENDENCIES += argp-standalone
20 LIBV4L_LIBS += -largp
21 endif
22
23 LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
24
25 ifeq ($(BR2_PACKAGE_JPEG),y)
26 LIBV4L_DEPENDENCIES += jpeg
27 LIBV4L_CONF_OPTS += --with-jpeg
28 else
29 LIBV4L_CONF_OPTS += --without-jpeg
30 endif
31
32 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
33 LIBV4L_CONF_OPTS += --with-libudev
34 LIBV4L_DEPENDENCIES += udev
35 else
36 LIBV4L_CONF_OPTS += --without-libudev
37 endif
38
39 ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
40 LIBV4L_CONF_OPTS += --enable-v4l-utils
41 # clock_gettime is used, which is provided by librt for glibc < 2.17
42 LIBV4L_LIBS += -lrt
43 else
44 LIBV4L_CONF_OPTS += --disable-v4l-utils
45 endif
46
47 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
48
49 $(eval $(autotools-package))