2014-11-07 11:48:14 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# exiv2
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-08-26 14:11:42 +02:00
|
|
|
EXIV2_VERSION = 0.27.2
|
|
|
|
EXIV2_SITE = $(call github,Exiv2,exiv2,v$(EXIV2_VERSION))
|
2014-11-07 11:48:14 +01:00
|
|
|
EXIV2_INSTALL_STAGING = YES
|
2019-06-05 15:51:06 +02:00
|
|
|
EXIV2_LICENSE = GPL-2.0+, BSD-3-Clause
|
|
|
|
EXIV2_LICENSE_FILES = COPYING COPYING-CMAKE-SCRIPTS
|
2014-11-07 11:48:14 +01:00
|
|
|
|
2020-02-29 22:32:02 +01:00
|
|
|
# CVE-2019-13504 is misclassified (by our CVE tracker) as affecting version
|
|
|
|
# 0.27.2, while in fact both commits that fixed this issue are already in this
|
|
|
|
# version.
|
|
|
|
EXIV2_IGNORE_CVES += CVE-2019-13504
|
|
|
|
|
2020-02-29 22:32:03 +01:00
|
|
|
# 0001-crwimage-Check-offset-and-size-against-total-size.patch
|
|
|
|
EXIV2_IGNORE_CVES += CVE-2019-17402
|
|
|
|
|
2020-02-29 22:32:04 +01:00
|
|
|
# 0002-fix_1011_jp2_readmetadata_loop.patch
|
|
|
|
EXIV2_IGNORE_CVES += CVE-2019-20421
|
|
|
|
|
2014-11-07 11:48:14 +01:00
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
|
|
|
|
|
2017-06-04 10:27:14 +02:00
|
|
|
# The following CMake variable disables a TRY_RUN call in the -pthread
|
|
|
|
# test which is not allowed when cross-compiling.
|
|
|
|
EXIV2_CONF_OPTS += -DTHREADS_PTHREAD_ARG=OFF
|
|
|
|
|
2019-06-05 15:51:06 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2_LENSDATA),y)
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=ON
|
2014-11-07 11:48:14 +01:00
|
|
|
else
|
2019-06-05 15:51:06 +02:00
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=OFF
|
2014-11-07 11:48:14 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2_PNG),y)
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_PNG=ON
|
|
|
|
EXIV2_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_PNG=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2_XMP),y)
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_XMP=ON -DEXIV2_ENABLE_LIBXMP=ON
|
|
|
|
EXIV2_DEPENDENCIES += expat
|
|
|
|
else
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_XMP=OFF -DEXIV2_ENABLE_LIBXMP=OFF
|
|
|
|
endif
|
|
|
|
|
2017-07-04 12:26:53 +02:00
|
|
|
EXIV2_DEPENDENCIES += $(TARGET_NLS_DEPENDENCIES)
|
|
|
|
|
|
|
|
ifeq ($(BR2_SYSTEM_ENABLE_NLS),y)
|
2014-11-07 11:48:14 +01:00
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=ON
|
|
|
|
else
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=OFF
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(cmake-package))
|