8622331e17
Fix the following build failure with argp-standalone and NLS raised
since commit 5430c8fedd
:
configure:19923: /home/giuliobenetti/autobuild/run/instance-2/output-1/host/bin/i686-linux-gcc -o conftest -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c -largp -largp >&5
/home/giuliobenetti/autobuild/run/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i686-buildroot-linux-uclibc/9.3.0/../../../../i686-buildroot-linux-uclibc/bin/ld: /home/giuliobenetti/autobuild/run/instance-2/output-1/host/i686-buildroot-linux-uclibc/sysroot/usr/lib/libargp.a(argp-parse.o): in function `argp_version_parser':
/home/giuliobenetti/autobuild/run/instance-2/output-1/build/argp-standalone-1.4.1/argp-parse.c:181: undefined reference to `libintl_dgettext'
[...]
checking for library containing argp_parse... no
configure: error: unable to find the argp_parse() function
Fixes:
- http://autobuild.buildroot.org/results/b7b2253ac902b441cc6ff12500b56bd15c413d71
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
89 lines
2.5 KiB
Makefile
89 lines
2.5 KiB
Makefile
################################################################################
|
|
#
|
|
# libv4l
|
|
#
|
|
################################################################################
|
|
|
|
LIBV4L_VERSION = 1.22.1
|
|
LIBV4L_SOURCE = v4l-utils-$(LIBV4L_VERSION).tar.bz2
|
|
LIBV4L_SITE = https://linuxtv.org/downloads/v4l-utils
|
|
LIBV4L_INSTALL_STAGING = YES
|
|
LIBV4L_DEPENDENCIES = host-pkgconf
|
|
LIBV4L_CONF_OPTS = --disable-doxygen-doc --disable-qvidcap
|
|
# needed to get utils/qv4l link flags right
|
|
LIBV4L_AUTORECONF = YES
|
|
# add host-gettext for AM_ICONV macro
|
|
LIBV4L_DEPENDENCIES += host-gettext
|
|
|
|
# fix uclibc-ng configure/compile
|
|
LIBV4L_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
# v4l-utils components have different licences, see v4l-utils.spec for details
|
|
LIBV4L_LICENSE = GPL-2.0+ (utilities), LGPL-2.1+ (libraries)
|
|
LIBV4L_LICENSE_FILES = COPYING COPYING.libv4l lib/libv4l1/libv4l1-kernelcode-license.txt
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
LIBV4L_DEPENDENCIES += alsa-lib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
|
|
LIBV4L_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
|
|
LIBV4L_CONF_ENV += LIBS=$(TARGET_NLS_LIBS)
|
|
endif
|
|
|
|
LIBV4L_DEPENDENCIES += $(if $(BR2_PACKAGE_LIBICONV),libiconv)
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
LIBV4L_DEPENDENCIES += jpeg
|
|
LIBV4L_CONF_OPTS += --with-jpeg
|
|
else
|
|
LIBV4L_CONF_OPTS += --without-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
|
LIBV4L_DEPENDENCIES += libgl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
|
LIBV4L_CONF_OPTS += --with-libudev --with-udevdir=/usr/lib/udev
|
|
LIBV4L_DEPENDENCIES += udev
|
|
else
|
|
LIBV4L_CONF_OPTS += --without-libudev
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLU),y)
|
|
LIBV4L_DEPENDENCIES += libglu
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBV4L_UTILS),y)
|
|
LIBV4L_CONF_OPTS += --enable-v4l-utils
|
|
LIBV4L_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
# v4l2-ctl needs c++11, use gnu++11 for typeof support
|
|
LIBV4L_CONF_ENV += CXXFLAGS="$(TARGET_CXXFLAGS) -std=gnu++11"
|
|
|
|
# IR BPF decoder support needs toolchain with linux-headers >= 3.18
|
|
# libelf and clang support
|
|
LIBV4L_CONF_OPTS += --disable-bpf
|
|
|
|
ifeq ($(BR2_PACKAGE_QT5BASE)$(BR2_PACKAGE_QT5BASE_GUI)$(BR2_PACKAGE_QT5BASE_WIDGETS),yyy)
|
|
LIBV4L_CONF_OPTS += --enable-qv4l2
|
|
LIBV4L_DEPENDENCIES += qt5base
|
|
# protect against host version detection of moc-qt5/rcc-qt5/uic-qt5
|
|
LIBV4L_CONF_ENV += \
|
|
ac_cv_prog_MOC=$(HOST_DIR)/bin/moc \
|
|
ac_cv_prog_RCC=$(HOST_DIR)/bin/rcc \
|
|
ac_cv_prog_UIC=$(HOST_DIR)/bin/uic
|
|
else
|
|
LIBV4L_CONF_OPTS += --disable-qv4l2
|
|
endif
|
|
else
|
|
LIBV4L_CONF_OPTS += --disable-v4l-utils
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL2_IMAGE),y)
|
|
LIBV4L_DEPENDENCIES += sdl2_image
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|