31b4883379
leptonica is affected by gcc bug 101737 resulting in the following build
failure since at least bump to version 1.82.0 in commit
81a961c545
:
sh4eb-buildroot-linux-gnu-gcc.br_real: internal compiler error: Segmentation fault signal terminated program cc1
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugs.buildroot.net/> for instructions.
Fixes:
- http://autobuild.buildroot.org/results/f18979454399d9c728f9e017e4cc3a1b27458f5b
- http://autobuild.buildroot.org/results/f3c803892175b3bb2ce68e3140c879b4a4d4b302
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
78 lines
1.9 KiB
Makefile
78 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# leptonica
|
|
#
|
|
################################################################################
|
|
|
|
LEPTONICA_VERSION = 1.83.1
|
|
LEPTONICA_SITE = https://github.com/DanBloomberg/leptonica/releases/download/$(LEPTONICA_VERSION)
|
|
LEPTONICA_LICENSE = BSD-2-Clause
|
|
LEPTONICA_LICENSE_FILES = leptonica-license.txt
|
|
LEPTONICA_CPE_ID_VENDOR = leptonica
|
|
LEPTONICA_INSTALL_STAGING = YES
|
|
LEPTONICA_DEPENDENCIES = host-pkgconf
|
|
|
|
LEPTONICA_CONF_OPTS += --disable-programs
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_101737),y)
|
|
LEPTONICA_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -O0"
|
|
endif
|
|
|
|
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
|
|
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
|
LEPTONICA_CONF_OPTS += --with-libwebpmux
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-libwebpmux
|
|
endif
|
|
else
|
|
LEPTONICA_CONF_OPTS += \
|
|
--without-libwebp \
|
|
--without-libwebpmux
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
LEPTONICA_DEPENDENCIES += zlib
|
|
LEPTONICA_CONF_OPTS += --with-zlib
|
|
else
|
|
LEPTONICA_CONF_OPTS += --without-zlib
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|