07ac045655
Quite some work has been done from 0.8.3 to 1.0.1, and as a result this commit is very intrusive. The biggest change is the move to an autotools package. Then, the options that enable utilities individually have been deprecated and moved to Config.in.legacy. Instead, we introduce new option to select either all the utilities. This change loses granularity in favor of maintainability. [Peter: needs host-pkgconf. Select and use argp-standalone on uClibc] Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
36 lines
1006 B
Makefile
36 lines
1006 B
Makefile
################################################################################
|
|
#
|
|
# libv4l
|
|
#
|
|
################################################################################
|
|
|
|
LIBV4L_VERSION = 1.0.1
|
|
LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
|
|
LIBV4L_SITE = http://linuxtv.org/downloads/v4l-utils/
|
|
LIBV4L_INSTALL_STAGING = YES
|
|
LIBV4L_DEPENDENCIES = host-pkgconf
|
|
|
|
# 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
|
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
|
LIBV4L_DEPENDENCIES += argp-standalone
|
|
LIBV4L_CONF_ENV += LIBS="-largp"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
LIBV4L_DEPENDENCIES += jpeg
|
|
LIBV4L_CONF_OPT += --with-jpeg
|
|
else
|
|
LIBV4L_CONF_OPT += --without-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
|
|
LIBV4L_CONF_OPT += --enable-v4l-utils
|
|
else
|
|
LIBV4L_CONF_OPT += --disable-v4l-utils
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|