open-plc-utils: new package
[buildroot-gz.git] / package / exiv2 / exiv2.mk
blob93e36f725ff928996771c0807b3616a37688e613
1 ################################################################################
3 # exiv2
5 ################################################################################
7 EXIV2_VERSION = 0.24
8 EXIV2_SITE = http://www.exiv2.org
9 EXIV2_INSTALL_STAGING = YES
11 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_BUILD_SAMPLES=OFF
13 ifeq ($(BR2_PACKAGE_EXIV2_LENSDATA),)
14 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_LENSDATA=OFF
15 endif
17 ifeq ($(BR2_PACKAGE_EXIV2_COMMERCIAL),y)
18 EXIV2_LICENSE = commercial
19 # NLS support is disabled in commercial version due to the copyright
20 # of the translated texts.
21 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_COMMERCIAL=ON -DEXIV2_ENABLE_NLS=OFF
22 else
23 EXIV2_LICENSE = GPLv2+
24 EXIV2_LICENSE_FILES = COPYING
25 endif
27 ifeq ($(BR2_PACKAGE_EXIV2_PNG),y)
28 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_PNG=ON
29 EXIV2_DEPENDENCIES += zlib
30 else
31 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_PNG=OFF
32 endif
34 ifeq ($(BR2_PACKAGE_EXIV2_XMP),y)
35 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_XMP=ON -DEXIV2_ENABLE_LIBXMP=ON
36 EXIV2_DEPENDENCIES += expat
37 else
38 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_XMP=OFF -DEXIV2_ENABLE_LIBXMP=OFF
39 endif
41 ifeq ($(BR2_ENABLE_LOCALE),y)
42 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=ON
43 else
44 EXIV2_CONF_OPTS += -DEXIV2_ENABLE_NLS=OFF
45 endif
47 $(eval $(cmake-package))