2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2007-01-11 08:27:37 +01:00
|
|
|
#
|
|
|
|
# tiff
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-09-25 04:49:02 +02:00
|
|
|
|
|
|
|
TIFF_VERSION = 4.0.3
|
|
|
|
TIFF_SITE = http://download.osgeo.org/libtiff
|
2013-06-03 18:03:30 +02:00
|
|
|
TIFF_LICENSE = tiff license
|
|
|
|
TIFF_LICENSE_FILES = COPYRIGHT
|
2008-11-11 12:43:27 +01:00
|
|
|
TIFF_INSTALL_STAGING = YES
|
2014-09-27 21:32:44 +02:00
|
|
|
TIFF_CONF_OPTS = \
|
2008-11-11 12:43:27 +01:00
|
|
|
--disable-cxx \
|
|
|
|
--without-x \
|
|
|
|
|
2012-10-22 17:47:52 +02:00
|
|
|
TIFF_DEPENDENCIES = host-pkgconf
|
2012-01-12 04:12:01 +01:00
|
|
|
|
2014-09-26 04:09:20 +02:00
|
|
|
TIFF_TOOLS_TO_DELETE = \
|
|
|
|
bmp2tiff \
|
|
|
|
fax2ps \
|
|
|
|
fax2tiff \
|
|
|
|
gif2tiff \
|
|
|
|
pal2rgb \
|
|
|
|
ppm2tiff \
|
|
|
|
ras2tiff \
|
|
|
|
raw2tiff \
|
|
|
|
rgb2ycbcr \
|
|
|
|
thumbnail \
|
|
|
|
tiff2bw \
|
|
|
|
tiff2ps \
|
|
|
|
tiff2rgba \
|
|
|
|
tiffcmp \
|
|
|
|
tiffcrop \
|
|
|
|
tiffdither \
|
|
|
|
tiffdump \
|
|
|
|
tiffinfo \
|
|
|
|
tiffmedian \
|
|
|
|
tiffset \
|
|
|
|
tiffsplit \
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_TIFF_TIFF2PDF),)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_TOOLS_TO_DELETE += tiff2pdf
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
2014-09-26 04:09:20 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_TIFF_TIFFCP),)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_TOOLS_TO_DELETE += tiffcp
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_CCITT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-ccitt
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_PACKBITS),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-packbits
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_LZW),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-lzw
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_THUNDER),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-thunder
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_NEXT),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-next
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_LOGLUV),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-logluv
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_MDI),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-mdi
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_ZLIB),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-zlib
|
2012-01-12 04:12:01 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_DEPENDENCIES += zlib
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_PIXARLOG),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-pixarlog
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_JPEG),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-jpeg
|
2012-01-12 04:12:01 +01:00
|
|
|
else
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_DEPENDENCIES += jpeg
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_OLD_JPEG),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-old-jpeg
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq ($(BR2_PACKAGE_TIFF_JBIG),y)
|
2015-03-31 09:21:57 +02:00
|
|
|
TIFF_CONF_OPTS += --disable-jbig
|
2012-01-12 04:12:01 +01:00
|
|
|
endif
|
2008-11-11 12:43:27 +01:00
|
|
|
|
2014-09-26 04:09:20 +02:00
|
|
|
define TIFF_REMOVE_TOOLS_FIXUP
|
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(TIFF_TOOLS_TO_DELETE))
|
2010-09-01 23:10:28 +02:00
|
|
|
endef
|
2007-01-11 08:27:37 +01:00
|
|
|
|
2014-09-26 04:09:20 +02:00
|
|
|
TIFF_POST_INSTALL_TARGET_HOOKS += TIFF_REMOVE_TOOLS_FIXUP
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|