1efa9f865e
leptonica configure script does not use pkg-config to find the TIFF library, so it doesn't know about the transitive dependencies of the TIFF library. Switching to PKG_CHECK_MODULES() to discover the library solves the issue. Fixes: http://autobuild.buildroot.net/results/8dd2bcc41e861bdd324dd081e39925964d1ac428 http://autobuild.buildroot.net/results/ec7366d69b00625b652915fa58e3143f1bdcaf62 http://autobuild.buildroot.net/results/0cd74312a39e3bc59d15789a4c0a891f0f417b8c http://autobuild.buildroot.net/results/35f9a0f2db30dd62733142f0fcfa72699452583f http://autobuild.buildroot.net/results/f7ea889b2fb96ff7de492e282820c800187573cb Signed-off-by: Gilles Talis <gilles.talis@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
71 lines
1.6 KiB
Makefile
71 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# leptonica
|
|
#
|
|
################################################################################
|
|
|
|
LEPTONICA_VERSION = 1.74.1
|
|
LEPTONICA_SITE = http://www.leptonica.org/source
|
|
LEPTONICA_LICENSE = BSD-2c
|
|
LEPTONICA_LICENSE_FILES = leptonica-license.txt
|
|
LEPTONICA_INSTALL_STAGING = YES
|
|
|
|
# we patch configure.ac
|
|
LEPTONICA_AUTORECONF = YES
|
|
|
|
# PKG_CHECK_MODULES() is used in configure.ac patch
|
|
LEPTONICA_DEPENDENCIES = host-pkgconf
|
|
|
|
LEPTONICA_CONF_OPTS += --disable-programs
|
|
|
|
ifeq ($(BR2_PACKAGE_GIFLIB),y)
|
|
LEPTONICA_DEPENDENCIES += giflib
|
|
LEPTONICA_CONF_OPTS += --with-giflib
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-giflib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JPEG),y)
|
|
LEPTONICA_DEPENDENCIES += jpeg
|
|
LEPTONICA_CONF_OPTS += --with-jpeg
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-jpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPNG),y)
|
|
LEPTONICA_DEPENDENCIES += libpng
|
|
LEPTONICA_CONF_OPTS += --with-libpng
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-libpng
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
|
LEPTONICA_DEPENDENCIES += openjpeg
|
|
LEPTONICA_CONF_OPTS += --with-libopenjpeg
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-libopenjpeg
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF),y)
|
|
LEPTONICA_DEPENDENCIES += tiff
|
|
LEPTONICA_CONF_OPTS += --with-libtiff
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-libtiff
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_WEBP),y)
|
|
LEPTONICA_DEPENDENCIES += webp
|
|
LEPTONICA_CONF_OPTS += --with-libwebp
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-libwebp
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LEPTONICA_DEPENDENCIES += zlib
|
|
LEPTONICA_CONF_OPTS += --with-zlib
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|