Re: git: 6a5b2121a0ad - main - graphics/libimagequant: update to 4.0.4

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Sat, 26 Nov 2022 01:39:07 UTC
Dima Panov <fluffy@FreeBSD.org> writes:

> On 26.11.2022 00:12, Jan Beich wrote:
>
> [skip]
>
>> If you want libimagequant-norust or similar the onus on creating and
>> supporting that is on you. Beware, security/py-cryptography will also
>> require lang/rust to build soon (bug 254853).
>
> libimagequant itself not heavily bother me but having it as default
> dependency for graphics/gd does. Moreover, as vishwin@ mentioned in
> tread, gd developers keep it OFF by default and we also must follow
> this rule. @dinoex, please, resolve this.

libimagequant is enabled by default in autotools and disabled by default
in CMake. Bug 263185 happened because the port uses autotools.

Some confusion maybe caused by relicensing:
https://github.com/libgd/libgd/commit/3e41e98be66d (2013-03-25)
https://github.com/kornelski/pngquant/commit/80d02c83cd10 (2015-12-05)

Being a port maintainer doesn't imply to blindly follow upstream defaults.
Otherwise, graphics/gd would have to disable FREETYPE and FONTCONFIG to
follow README.md + CMakeLists.txt, drop --enable-gd-formats and disable
JPEG, PNG, TIFF, WEBP to follow CMakeLists.txt.