mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] libtiff: new package
@ 2021-10-22 10:47 Matthias Fend
  2021-11-05  7:55 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Matthias Fend @ 2021-10-22 10:47 UTC (permalink / raw)
  To: ptxdist

This package contains a library, libtiff, for reading and writing images
in the Tag Image File Format (TIFF), as well as a small collection of
tools for simple manipulation of TIFF images.

Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
---
v2:
- added Signed-off-by

 rules/libtiff.in   |  30 ++++++++++++
 rules/libtiff.make | 112 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 142 insertions(+)
 create mode 100644 rules/libtiff.in
 create mode 100644 rules/libtiff.make

diff --git a/rules/libtiff.in b/rules/libtiff.in
new file mode 100644
index 000000000..a7f9ea579
--- /dev/null
+++ b/rules/libtiff.in
@@ -0,0 +1,30 @@
+## SECTION=multimedia_libs
+
+config LIBTIFF
+	bool
+	select ZLIB             if LIBTIFF_ZLIB
+	select LIBJPEG		if LIBTIFF_JPEG
+	select LIBWEBP		if LIBTIFF_WEBP
+	prompt "libtiff"
+	help
+	  TIFF library
+
+if LIBTIFF
+
+config LIBTIFF_TOOLS
+        bool
+        prompt "install tools"
+
+config LIBTIFF_ZLIB
+        bool
+        prompt "support ZLIB compression"
+
+config LIBTIFF_JPEG
+	bool
+	prompt "support JPEG compression"
+
+config LIBTIFF_WEBP
+	bool
+	prompt "support WEBP compression"
+
+endif
diff --git a/rules/libtiff.make b/rules/libtiff.make
new file mode 100644
index 000000000..13199e57a
--- /dev/null
+++ b/rules/libtiff.make
@@ -0,0 +1,112 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Matthias Fend <matthias.fend@emfend.at>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBTIFF) += libtiff
+
+#
+# Paths and names
+#
+LIBTIFF_VERSION		:= 4.3.0
+LIBTIFF_MD5		:= 0a2e4744d1426a8fc8211c0cdbc3a1b3
+LIBTIFF			:= tiff-$(LIBTIFF_VERSION)
+LIBTIFF_SUFFIX		:= tar.gz
+LIBTIFF_URL		:= http://download.osgeo.org/libtiff/$(LIBTIFF).$(LIBTIFF_SUFFIX)
+LIBTIFF_SOURCE		:= $(SRCDIR)/$(LIBTIFF).$(LIBTIFF_SUFFIX)
+LIBTIFF_DIR		:= $(BUILDDIR)/$(LIBTIFF)
+LIBTIFF_LICENSE		:= libtiff
+LIBTIFF_LICENSE_FILES	:= file://COPYRIGHT;md5=34da3db46fab7501992f9615d7e158cf
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+LIBTIFF_CONF_TOOL	:= autoconf
+
+LIBTIFF_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--enable-option-checking \
+	--disable-silent-rules \
+	--disable-maintainer-mode \
+	--enable-dependency-tracking \
+	--disable-ld-version-script \
+	--enable-libtool-lock \
+	--disable-rpath \
+	$(GLOBAL_LARGE_FILE_OPTION) \
+	--enable-ccitt \
+	--enable-packbits \
+	--enable-lzw \
+	--enable-thunder \
+	--enable-next \
+	--enable-logluv \
+	--enable-mdi \
+	--$(call ptx/endis, PTXCONF_LIBTIFF_ZLIB)-zlib \
+	--disable-libdeflate \
+	--$(call ptx/endis, PTXCONF_LIBTIFF_ZLIB)-pixarlog \
+	--$(call ptx/endis, PTXCONF_LIBTIFF_JPEG)-jpeg \
+	--$(call ptx/endis, PTXCONF_LIBTIFF_JPEG)-old-jpeg \
+	--disable-jbig \
+	--disable-lerc \
+	--disable-lzma \
+	--disable-zstd \
+	--$(call ptx/endis, PTXCONF_LIBTIFF_WEBP)-webp \
+	--disable-jpeg12 \
+	--disable-cxx \
+	--disable-win32-io \
+	--enable-strip-chopping \
+	--disable-defer-strile-load \
+	--disable-chunky-strip-read \
+	--enable-extrasample-as-alpha \
+	--enable-check-ycbcr-subsampling
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtiff.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, libtiff)
+	@$(call install_fixup, libtiff, PRIORITY, optional)
+	@$(call install_fixup, libtiff, SECTION, base)
+	@$(call install_fixup, libtiff, AUTHOR, "Matthias Fend <matthias.fend@emfend.at>")
+	@$(call install_fixup, libtiff, DESCRIPTION, missing)
+
+	@$(call install_lib, libtiff, 0, 0, 0644, libtiff)
+
+#ifdef PTXCONF_LIBTIFF_TOOLS
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/fax2ps)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/fax2tiff)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/pal2rgb)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/ppm2tiff)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/raw2tiff)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2bw)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2pdf)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2ps)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2rgba)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcmp)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcp)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcrop)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffdither)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffdump)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffinfo)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffmedian)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffset)
+	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffsplit)
+#endif
+
+	@$(call install_finish, libtiff)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.25.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] libtiff: new package
  2021-10-22 10:47 [ptxdist] [PATCH v2] libtiff: new package Matthias Fend
@ 2021-11-05  7:55 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-11-05  7:55 UTC (permalink / raw)
  To: ptxdist; +Cc: Matthias Fend

Thanks, applied as 33db942aefd9650339f9a119fca569bc81003ba7.

Michael

[sent from post-receive hook]

On Fri, 05 Nov 2021 08:55:21 +0100, Matthias Fend <matthias.fend@emfend.at> wrote:
> This package contains a library, libtiff, for reading and writing images
> in the Tag Image File Format (TIFF), as well as a small collection of
> tools for simple manipulation of TIFF images.
> 
> Signed-off-by: Matthias Fend <matthias.fend@emfend.at>
> Message-Id: <20211022104708.1567881-1-matthias.fend@emfend.at>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/libtiff.in b/rules/libtiff.in
> new file mode 100644
> index 000000000000..a7f9ea5794da
> --- /dev/null
> +++ b/rules/libtiff.in
> @@ -0,0 +1,30 @@
> +## SECTION=multimedia_libs
> +
> +config LIBTIFF
> +	bool
> +	select ZLIB             if LIBTIFF_ZLIB
> +	select LIBJPEG		if LIBTIFF_JPEG
> +	select LIBWEBP		if LIBTIFF_WEBP
> +	prompt "libtiff"
> +	help
> +	  TIFF library
> +
> +if LIBTIFF
> +
> +config LIBTIFF_TOOLS
> +        bool
> +        prompt "install tools"
> +
> +config LIBTIFF_ZLIB
> +        bool
> +        prompt "support ZLIB compression"
> +
> +config LIBTIFF_JPEG
> +	bool
> +	prompt "support JPEG compression"
> +
> +config LIBTIFF_WEBP
> +	bool
> +	prompt "support WEBP compression"
> +
> +endif
> diff --git a/rules/libtiff.make b/rules/libtiff.make
> new file mode 100644
> index 000000000000..13199e57a64d
> --- /dev/null
> +++ b/rules/libtiff.make
> @@ -0,0 +1,112 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2021 by Matthias Fend <matthias.fend@emfend.at>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_LIBTIFF) += libtiff
> +
> +#
> +# Paths and names
> +#
> +LIBTIFF_VERSION		:= 4.3.0
> +LIBTIFF_MD5		:= 0a2e4744d1426a8fc8211c0cdbc3a1b3
> +LIBTIFF			:= tiff-$(LIBTIFF_VERSION)
> +LIBTIFF_SUFFIX		:= tar.gz
> +LIBTIFF_URL		:= http://download.osgeo.org/libtiff/$(LIBTIFF).$(LIBTIFF_SUFFIX)
> +LIBTIFF_SOURCE		:= $(SRCDIR)/$(LIBTIFF).$(LIBTIFF_SUFFIX)
> +LIBTIFF_DIR		:= $(BUILDDIR)/$(LIBTIFF)
> +LIBTIFF_LICENSE		:= libtiff
> +LIBTIFF_LICENSE_FILES	:= file://COPYRIGHT;md5=34da3db46fab7501992f9615d7e158cf
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +LIBTIFF_CONF_TOOL	:= autoconf
> +
> +LIBTIFF_CONF_OPT	:= \
> +	$(CROSS_AUTOCONF_USR) \
> +	--enable-option-checking \
> +	--disable-silent-rules \
> +	--disable-maintainer-mode \
> +	--enable-dependency-tracking \
> +	--disable-ld-version-script \
> +	--enable-libtool-lock \
> +	--disable-rpath \
> +	$(GLOBAL_LARGE_FILE_OPTION) \
> +	--enable-ccitt \
> +	--enable-packbits \
> +	--enable-lzw \
> +	--enable-thunder \
> +	--enable-next \
> +	--enable-logluv \
> +	--enable-mdi \
> +	--$(call ptx/endis, PTXCONF_LIBTIFF_ZLIB)-zlib \
> +	--disable-libdeflate \
> +	--$(call ptx/endis, PTXCONF_LIBTIFF_ZLIB)-pixarlog \
> +	--$(call ptx/endis, PTXCONF_LIBTIFF_JPEG)-jpeg \
> +	--$(call ptx/endis, PTXCONF_LIBTIFF_JPEG)-old-jpeg \
> +	--disable-jbig \
> +	--disable-lerc \
> +	--disable-lzma \
> +	--disable-zstd \
> +	--$(call ptx/endis, PTXCONF_LIBTIFF_WEBP)-webp \
> +	--disable-jpeg12 \
> +	--disable-cxx \
> +	--disable-win32-io \
> +	--enable-strip-chopping \
> +	--disable-defer-strile-load \
> +	--disable-chunky-strip-read \
> +	--enable-extrasample-as-alpha \
> +	--enable-check-ycbcr-subsampling
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/libtiff.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, libtiff)
> +	@$(call install_fixup, libtiff, PRIORITY, optional)
> +	@$(call install_fixup, libtiff, SECTION, base)
> +	@$(call install_fixup, libtiff, AUTHOR, "Matthias Fend <matthias.fend@emfend.at>")
> +	@$(call install_fixup, libtiff, DESCRIPTION, missing)
> +
> +	@$(call install_lib, libtiff, 0, 0, 0644, libtiff)
> +
> +#ifdef PTXCONF_LIBTIFF_TOOLS
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/fax2ps)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/fax2tiff)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/pal2rgb)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/ppm2tiff)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/raw2tiff)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2bw)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2pdf)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2ps)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiff2rgba)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcmp)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcp)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffcrop)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffdither)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffdump)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffinfo)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffmedian)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffset)
> +	@$(call install_copy, libtiff, 0, 0, 0755, -, /usr/bin/tiffsplit)
> +#endif
> +
> +	@$(call install_finish, libtiff)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-05  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22 10:47 [ptxdist] [PATCH v2] libtiff: new package Matthias Fend
2021-11-05  7:55 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox