Sunday, February 24, 2019

[wip] graphics/tiff: enable more compression formats

? tiff-4.0.10-libtiff.so.40.3
? tiff-4.0.10-libtiff.so.40.3.slim
? tiff-4.0.10-libtiffxx.so.40.2
? tiff-4.0.10-libtiffxx.so.40.2.slim
Index: Makefile
===================================================================
RCS file: /cvs/ports/graphics/tiff/Makefile,v
retrieving revision 1.87
diff -u -r1.87 Makefile
--- Makefile 5 Dec 2018 20:35:25 -0000 1.87
+++ Makefile 24 Feb 2019 21:29:23 -0000
@@ -3,7 +3,7 @@
COMMENT= tools and library routines for working with TIFF images

DISTNAME= tiff-4.0.10
-SHARED_LIBS= tiff 40.3 # 9.0
+SHARED_LIBS= tiff 40.4 # 9.0
SHARED_LIBS+= tiffxx 40.2 # 9.0
CATEGORIES= graphics

@@ -11,8 +11,12 @@

HOMEPAGE= http://www.simplesystems.org/libtiff/

-LIB_DEPENDS= graphics/jpeg
-WANTLIB= c m ${COMPILER_LIBCXX} z jpeg
+LIB_DEPENDS= graphics/jpeg \
+ graphics/libwebp \
+ archivers/zstd \
+ archivers/xz
+
+WANTLIB= c m ${COMPILER_LIBCXX} z jpeg lzma webp zstd

COMPILER = base-clang ports-gcc base-gcc

@@ -21,9 +25,6 @@

CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --disable-jbig \
- --disable-lzma \
- --disable-webp \
- --disable-zstd \
--with-docdir="${PREFIX}/share/doc/tiff" \
--with-jpeg-include-dir="${LOCALBASE}/include" \
--with-jpeg-lib-dir="${LOCALBASE}/lib" \
Hi,

for various gis toolchain wip i have @work, i need to experiment with
webp, lzma & zstd compression in the geotiff container (see the various
COMPRESS options in https://www.gdal.org/frmt_gtiff.html) - and either i
need to make gdal use its internal tiff copy (where all options are
enabled) or enable those options on the systemwide tiff.

im not pushing for this diff, but i'd like to start a discussion on the
rationale - i looked, and xz/libwebp/zstd build fine on all the archs we
build pkgs on (aarch64, amd64, arm, i386, mips64, mips64el, powerpc,
sparc64) and the options are all enabled by default in upstream libtiff
(development is driven by gdal developers anyway those days).

of course this would impact wantlib for all graphics/tiff consumers,
which is 186 ports according to sqlports, and require a bulk as 7300
ports indirectly depend on it according to show-reverse-deps.

bumped libtiff minor as 3 new syms are added: TIFFInitLZMA,
TIFFInitWebP & TIFFInitZSTD.

Landry

No comments:

Post a Comment