mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-12 23:03:29 +08:00
98c6ad3a8a
Add support for Exiv2 library and utility to manage image metadata Exiv2 can be built in GPLv2+ or commercial version. But in commercial version the Nikon lens name database and the NLS support has to be disabled for copyright reason. [Thomas: - switch to using the CMake build system, which works better than the clunky autoconf + manual Makefile based build system. - add missing toolchains dependencies: does not build in static library configuration, needs C++, etc.] Signed-off-by: Nicolas Serafini <nicolas.serafini@sensefly.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# exiv2
|
|
#
|
|
################################################################################
|
|
|
|
EXIV2_VERSION = 0.24
|
|
EXIV2_SITE = http://www.exiv2.org
|
|
EXIV2_INSTALL_STAGING = YES
|
|
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
|
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2_LENSDATA),)
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=OFF
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_EXIV2_COMMERCIAL),y)
|
|
EXIV2_LICENSE = commercial
|
|
# NLS support is disabled in commercial version due to the copyright
|
|
# of the translated texts.
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_COMMERCIAL=ON -DEXIV2_ENABLE_NLS=OFF
|
|
else
|
|
EXIV2_LICENSE = GPLv2+
|
|
EXIV2_LICENSE_FILES = COPYING
|
|
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
|
|
|
|
ifeq ($(BR2_ENABLE_LOCALE),y)
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=ON
|
|
else
|
|
EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=OFF
|
|
endif
|
|
|
|
$(eval $(cmake-package))
|