2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2011-03-07 18:21:18 +01:00
|
|
|
#
|
|
|
|
# libv4l
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2014-12-05 22:09:53 +01:00
|
|
|
LIBV4L_VERSION = 1.6.2
|
2011-03-07 18:21:18 +01:00
|
|
|
LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
|
2014-07-31 10:46:58 +02:00
|
|
|
LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils
|
2011-03-07 18:21:18 +01:00
|
|
|
LIBV4L_INSTALL_STAGING = YES
|
2014-07-05 23:07:40 +02:00
|
|
|
LIBV4L_DEPENDENCIES = host-pkgconf
|
2014-10-14 15:05:03 +02:00
|
|
|
LIBV4L_CONF_OPTS = --disable-doxygen-doc
|
2011-03-07 18:21:18 +01:00
|
|
|
|
2014-07-05 23:07:40 +02:00
|
|
|
# v4l-utils components have different licences, see v4l-utils.spec for details
|
|
|
|
LIBV4L_LICENSE = GPLv2+ (utilities), LGPLv2.1+ (libraries)
|
|
|
|
LIBV4L_LICENSE_FILES = COPYING COPYING.libv4l lib/libv4l1/libv4l1-kernelcode-license.txt
|
2011-04-05 12:05:08 +02:00
|
|
|
|
2014-07-05 23:07:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
|
|
|
LIBV4L_DEPENDENCIES += argp-standalone
|
2014-11-09 11:21:21 +01:00
|
|
|
LIBV4L_LIBS += -largp
|
2011-03-07 18:21:18 +01:00
|
|
|
endif
|
|
|
|
|
2014-10-23 23:22:36 +02:00
|
|
|
LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
|
2014-07-05 23:07:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
|
|
LIBV4L_DEPENDENCIES += jpeg
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBV4L_CONF_OPTS += --with-jpeg
|
2014-07-05 23:07:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBV4L_CONF_OPTS += --without-jpeg
|
2014-07-05 23:07:40 +02:00
|
|
|
endif
|
2011-03-07 18:21:18 +01:00
|
|
|
|
2014-10-14 15:05:03 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
|
|
LIBV4L_CONF_OPTS += --with-libudev
|
|
|
|
LIBV4L_DEPENDENCIES += udev
|
|
|
|
else
|
|
|
|
LIBV4L_CONF_OPTS += --without-libudev
|
|
|
|
endif
|
|
|
|
|
2014-07-05 23:07:40 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBV4L_CONF_OPTS += --enable-v4l-utils
|
2014-11-09 11:21:21 +01:00
|
|
|
# clock_gettime is used, which is provided by librt for glibc < 2.17
|
|
|
|
LIBV4L_LIBS += -lrt
|
2014-07-05 23:07:40 +02:00
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
LIBV4L_CONF_OPTS += --disable-v4l-utils
|
2014-07-05 23:07:40 +02:00
|
|
|
endif
|
2011-03-07 18:21:18 +01:00
|
|
|
|
2014-11-09 11:21:21 +01:00
|
|
|
LIBV4L_CONF_ENV += LIBS="$(LIBV4L_LIBS)"
|
|
|
|
|
2014-07-05 23:07:40 +02:00
|
|
|
$(eval $(autotools-package))
|