6db2abdc883dd49c8622b75266c8ea767cc30008
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / tiff / tiff.mk
1 ################################################################################
2 #
3 # tiff
4 #
5 ################################################################################
6
7 TIFF_VERSION = 4.0.3
8 TIFF_SITE = http://download.osgeo.org/libtiff
9 TIFF_LICENSE = tiff license
10 TIFF_LICENSE_FILES = COPYRIGHT
11 TIFF_INSTALL_STAGING = YES
12 TIFF_CONF_OPTS = \
13         --disable-cxx \
14         --without-x \
15
16 TIFF_DEPENDENCIES = host-pkgconf
17
18 ifneq ($(BR2_PACKAGE_TIFF_CCITT),y)
19 TIFF_CONF_OPTS += --disable-ccitt
20 endif
21
22 ifneq ($(BR2_PACKAGE_TIFF_PACKBITS),y)
23 TIFF_CONF_OPTS += --disable-packbits
24 endif
25
26 ifneq ($(BR2_PACKAGE_TIFF_LZW),y)
27 TIFF_CONF_OPTS += --disable-lzw
28 endif
29
30 ifneq ($(BR2_PACKAGE_TIFF_THUNDER),y)
31 TIFF_CONF_OPTS += --disable-thunder
32 endif
33
34 ifneq ($(BR2_PACKAGE_TIFF_NEXT),y)
35 TIFF_CONF_OPTS += --disable-next
36 endif
37
38 ifneq ($(BR2_PACKAGE_TIFF_LOGLUV),y)
39 TIFF_CONF_OPTS += --disable-logluv
40 endif
41
42 ifneq ($(BR2_PACKAGE_TIFF_MDI),y)
43 TIFF_CONF_OPTS += --disable-mdi
44 endif
45
46 ifneq ($(BR2_PACKAGE_TIFF_ZLIB),y)
47 TIFF_CONF_OPTS += --disable-zlib
48 else
49 TIFF_DEPENDENCIES += zlib
50 endif
51
52 ifneq ($(BR2_PACKAGE_TIFF_PIXARLOG),y)
53 TIFF_CONF_OPTS += --disable-pixarlog
54 endif
55
56 ifneq ($(BR2_PACKAGE_TIFF_JPEG),y)
57 TIFF_CONF_OPTS += --disable-jpeg
58 else
59 TIFF_DEPENDENCIES += jpeg
60 endif
61
62 ifneq ($(BR2_PACKAGE_TIFF_OLD_JPEG),y)
63 TIFF_CONF_OPTS += --disable-old-jpeg
64 endif
65
66 ifneq ($(BR2_PACKAGE_TIFF_JBIG),y)
67 TIFF_CONF_OPTS += --disable-jbig
68 endif
69
70 TIFF_SUBDIRS = port libtiff
71 ifeq ($(BR2_PACKAGE_TIFF_UTILITIES),y)
72 TIFF_SUBDIRS += tools
73 endif
74
75 TIFF_MAKE = $(MAKE) SUBDIRS="$(TIFF_SUBDIRS)"
76
77 $(eval $(autotools-package))