diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2015-04-23 23:18:16 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-25 10:15:10 +0200 |
commit | e6c7ad176b8d52e33772ccf86490a19d5720471b (patch) | |
tree | e8f071044794af4f3a4b8129002c914c79892f25 /package/tiff | |
parent | 42cfac07e1e5732fccf676c8b7aeabe53dbd2ff7 (diff) |
package/tiff: Rework tiff utilities handling
Remove all utility-specific options in favour of a generic
option which select either all or no packages. If users
want something more fine-grained than that, they can always
remove the unnecessary tools in a post-build script.
Since tiff has no configure option or Makefile target to prevent
the build/install of its utilities specific Makefile targets are
called to build the libtiff and, optionally, the utilities.
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[Arnout: more compact implementation, slightly extend help text]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/tiff')
-rw-r--r-- | package/tiff/Config.in | 11 | ||||
-rw-r--r-- | package/tiff/tiff.mk | 39 |
2 files changed, 8 insertions, 42 deletions
diff --git a/package/tiff/Config.in b/package/tiff/Config.in index 3a929f7a3..acb335cc9 100644 --- a/package/tiff/Config.in +++ b/package/tiff/Config.in @@ -60,14 +60,9 @@ config BR2_PACKAGE_TIFF_JBIG default y endmenu -config BR2_PACKAGE_TIFF_TIFF2PDF - bool "tiff2pdf" +config BR2_PACKAGE_TIFF_UTILITIES + bool "tiff utilities" help - tiff2pdf utility - -config BR2_PACKAGE_TIFF_TIFFCP - bool "tiffcp" - help - tiffcp utility + Install all tiff utilities. endif diff --git a/package/tiff/tiff.mk b/package/tiff/tiff.mk index 06f0e347d..6db2abdc8 100644 --- a/package/tiff/tiff.mk +++ b/package/tiff/tiff.mk @@ -15,36 +15,6 @@ TIFF_CONF_OPTS = \ TIFF_DEPENDENCIES = host-pkgconf -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),) -TIFF_TOOLS_TO_DELETE += tiff2pdf -endif -ifeq ($(BR2_PACKAGE_TIFF_TIFFCP),) -TIFF_TOOLS_TO_DELETE += tiffcp -endif - ifneq ($(BR2_PACKAGE_TIFF_CCITT),y) TIFF_CONF_OPTS += --disable-ccitt endif @@ -97,10 +67,11 @@ ifneq ($(BR2_PACKAGE_TIFF_JBIG),y) TIFF_CONF_OPTS += --disable-jbig endif -define TIFF_REMOVE_TOOLS_FIXUP - rm -f $(addprefix $(TARGET_DIR)/usr/bin/,$(TIFF_TOOLS_TO_DELETE)) -endef +TIFF_SUBDIRS = port libtiff +ifeq ($(BR2_PACKAGE_TIFF_UTILITIES),y) +TIFF_SUBDIRS += tools +endif -TIFF_POST_INSTALL_TARGET_HOOKS += TIFF_REMOVE_TOOLS_FIXUP +TIFF_MAKE = $(MAKE) SUBDIRS="$(TIFF_SUBDIRS)" $(eval $(autotools-package)) |