scancpan: fix detection of native module
[buildroot-gz.git] / package / libv4l / libv4l.mk
blobedb2a36d69795139bfe281558fdb9f741a50ae5d
1 ################################################################################
3 # libv4l
5 ################################################################################
7 LIBV4L_VERSION = 1.6.3
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_ARGP_STANDALONE),y)
22 LIBV4L_DEPENDENCIES += argp-standalone
23 LIBV4L_LIBS += -largp
24 endif
26 LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
28 ifeq ($(BR2_PACKAGE_JPEG),y)
29 LIBV4L_DEPENDENCIES += jpeg
30 LIBV4L_CONF_OPTS += --with-jpeg
31 else
32 LIBV4L_CONF_OPTS += --without-jpeg
33 endif
35 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
36 LIBV4L_CONF_OPTS += --with-libudev
37 LIBV4L_DEPENDENCIES += udev
38 else
39 LIBV4L_CONF_OPTS += --without-libudev
40 endif
42 ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
43 LIBV4L_CONF_OPTS += --enable-v4l-utils
44 # clock_gettime is used, which is provided by librt for glibc < 2.17
45 LIBV4L_LIBS += -lrt
46 else
47 LIBV4L_CONF_OPTS += --disable-v4l-utils
48 endif
50 LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
52 $(eval $(autotools-package))