open-plc-utils: new package
[buildroot-gz.git] / package / libv4l / libv4l.mk
blob94c7031039efa869d78138bb7c4a5f544ec13a92
1 ################################################################################
3 # libv4l
5 ################################################################################
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
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
18 ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
19 LIBV4L_DEPENDENCIES += argp-standalone
20 LIBV4L_LIBS += -largp
21 endif
23 LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
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
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
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
47 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
49 $(eval $(autotools-package))