Files
buildroot/package/imlib2/Config.in
Yegor Yefremov 00bec472c7 package/imlib2: add zlib dependency
The demo programs, which have always been built and are still enabled by
default, gained a zlib dependency in imlib2 1.12.3: upstream commit
f8a451043871 ("imlib2_load: Add crc32 printout") started using zlib's
crc32() in imlib2_load, and 31006b425e11 ("imlib2_view: Optionally show
crc32 of image data") did the same for imlib2_view. Both hardcoded -lz.

Upstream commit b9555030dace ("autofoo: don't hardcode zlib flags"),
first released in 1.12.4, replaced -lz with $(ZLIB_LIBS) and added an
unconditional PKG_CHECK_MODULES(ZLIB, zlib) to the demo programs branch
of configure, turning the previously silent link-time requirement into a
configure failure:

  checking for zlib... no
  configure: error: Package requirements (zlib) were not met:

  Package 'zlib' not found

As Buildroot went straight from 1.7.3 to 1.12.5 the intermediate state
was never packaged, but the dependency has in fact been missing since the
crc32 support landed.

Fixes: https://autobuild.buildroot.org/results/4e05404c353ef985d74757d0b1ec3eda2cdff523/

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit 051e5ab13b)
Signed-off-by: Thomas Perale <thomas.perale@mind.be>
2026-09-16 11:55:05 +02:00

44 lines
965 B
Plaintext

comment "imlib2 needs a toolchain w/ dynamic library"
depends on BR2_STATIC_LIBS
config BR2_PACKAGE_IMLIB2
bool "imlib2"
depends on !BR2_STATIC_LIBS # dlopen()
select BR2_PACKAGE_FREETYPE
select BR2_PACKAGE_ZLIB
help
Imlib 2 is the successor to Imlib. This library provides
routines to load, save and render images in various formats.
http://freshmeat.net/projects/imlib2/
if BR2_PACKAGE_IMLIB2
config BR2_PACKAGE_IMLIB2_JPEG
bool "JPEG support"
select BR2_PACKAGE_JPEG
config BR2_PACKAGE_IMLIB2_PNG
bool "PNG support"
select BR2_PACKAGE_LIBPNG
config BR2_PACKAGE_IMLIB2_GIF
bool "GIF support"
select BR2_PACKAGE_GIFLIB
config BR2_PACKAGE_IMLIB2_TIFF
bool "TIFF support"
select BR2_PACKAGE_TIFF
config BR2_PACKAGE_IMLIB2_ID3
bool "ID3 support"
select BR2_PACKAGE_LIBID3TAG
config BR2_PACKAGE_IMLIB2_X
bool "X support"
default y
depends on BR2_PACKAGE_XORG7
select BR2_PACKAGE_XLIB_LIBXEXT
select BR2_PACKAGE_XLIB_LIBX11
endif