diff options
author | Frank Hunleth <fhunleth@troodon-software.com> | 2012-01-11 22:12:01 -0500 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2012-01-12 11:06:10 +0100 |
commit | af42c27da6485464087cee123a4b0208d0721cfa (patch) | |
tree | ee5209e74c3e86e0300bd5c504acf9b091a8ecd0 /package/tiff/tiff.mk | |
parent | 0e6695fc365df202ec8e27c7deb322a34ae3abf9 (diff) |
tiff: add utility commands and library options
Added support for compiling tiffcp and tiff2pdf.
Added options for compiling out various libtiff features. By default,
all libtiff features are built so that the result is the same as before
this change.
Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/tiff/tiff.mk')
-rw-r--r-- | package/tiff/tiff.mk | 66 |
1 files changed, 65 insertions, 1 deletions
diff --git a/package/tiff/tiff.mk b/package/tiff/tiff.mk index 1d57db760..ed05bf196 100644 --- a/package/tiff/tiff.mk +++ b/package/tiff/tiff.mk @@ -12,10 +12,74 @@ TIFF_CONF_OPT = \ --disable-cxx \ --without-x \ -TIFF_DEPENDENCIES = host-pkg-config zlib jpeg +TIFF_DEPENDENCIES = host-pkg-config + +TIFF_TOOLS_LIST = +ifeq ($(BR2_PACKAGE_TIFF_TIFF2PDF),y) + TIFF_TOOLS_LIST += tiff2pdf +endif +ifeq ($(BR2_PACKAGE_TIFF_TIFFCP),y) + TIFF_TOOLS_LIST += tiffcp +endif + +ifneq ($(BR2_PACKAGE_TIFF_CCITT),y) + TIFF_CONF_OPT += --disable-ccitt +endif + +ifneq ($(BR2_PACKAGE_TIFF_PACKBITS),y) + TIFF_CONF_OPT += --disable-packbits +endif + +ifneq ($(BR2_PACKAGE_TIFF_LZW),y) + TIFF_CONF_OPT += --disable-lzw +endif + +ifneq ($(BR2_PACKAGE_TIFF_THUNDER),y) + TIFF_CONF_OPT += --disable-thunder +endif + +ifneq ($(BR2_PACKAGE_TIFF_NEXT),y) + TIFF_CONF_OPT += --disable-next +endif + +ifneq ($(BR2_PACKAGE_TIFF_LOGLUV),y) + TIFF_CONF_OPT += --disable-logluv +endif + +ifneq ($(BR2_PACKAGE_TIFF_MDI),y) + TIFF_CONF_OPT += --disable-mdi +endif + +ifneq ($(BR2_PACKAGE_TIFF_ZLIB),y) + TIFF_CONF_OPT += --disable-zlib +else + TIFF_DEPENDENCIES += zlib +endif + +ifneq ($(BR2_PACKAGE_TIFF_PIXARLOG),y) + TIFF_CONF_OPT += --disable-pixarlog +endif + +ifneq ($(BR2_PACKAGE_TIFF_JPEG),y) + TIFF_CONF_OPT += --disable-jpeg +else + TIFF_DEPENDENCIES += jpeg +endif + +ifneq ($(BR2_PACKAGE_TIFF_OLD_JPEG),y) + TIFF_CONF_OPT += --disable-old-jpeg +endif + +ifneq ($(BR2_PACKAGE_TIFF_JBIG),y) + TIFF_CONF_OPT += --disable-jbig +endif define TIFF_INSTALL_TARGET_CMDS -cp -a $(@D)/libtiff/.libs/libtiff.so* $(TARGET_DIR)/usr/lib/ + for i in $(TIFF_TOOLS_LIST); \ + do \ + $(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/bin/$$i; \ + done endef $(eval $(call AUTOTARGETS)) |