2017-03-19 09:07:52 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# leptonica
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-01-31 10:50:55 +01:00
|
|
|
LEPTONICA_VERSION = 1.80.0
|
2017-03-19 09:07:52 +01:00
|
|
|
LEPTONICA_SITE = http://www.leptonica.org/source
|
2017-03-30 15:43:39 +02:00
|
|
|
LEPTONICA_LICENSE = BSD-2-Clause
|
2017-03-19 09:07:52 +01:00
|
|
|
LEPTONICA_LICENSE_FILES = leptonica-license.txt
|
2021-01-31 13:54:56 +01:00
|
|
|
LEPTONICA_CPE_ID_VENDOR = leptonica
|
2017-03-19 09:07:52 +01:00
|
|
|
LEPTONICA_INSTALL_STAGING = YES
|
2017-03-27 22:24:38 +02:00
|
|
|
LEPTONICA_DEPENDENCIES = host-pkgconf
|
|
|
|
|
2017-03-19 09:07:52 +01:00
|
|
|
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
|
2021-01-31 20:41:25 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_WEBP_DEMUX)$(BR2_PACKAGE_WEBP_MUX),yy)
|
|
|
|
LEPTONICA_CONF_OPTS += --with-libwebpmux
|
2017-03-19 09:07:52 +01:00
|
|
|
else
|
2021-01-31 20:41:25 +01:00
|
|
|
LEPTONICA_CONF_OPTS += --without-libwebpmux
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
LEPTONICA_CONF_OPTS += \
|
|
|
|
--without-libwebp \
|
|
|
|
--without-libwebpmux
|
2017-03-19 09:07:52 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
LEPTONICA_DEPENDENCIES += zlib
|
|
|
|
LEPTONICA_CONF_OPTS += --with-zlib
|
|
|
|
else
|
|
|
|
LEPTONICA_CONF_OPTS += --without-zlib
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(autotools-package))
|