package/gdk-pixbuf-xlib: new package

Deprecated Xlib integration for GdkPixbuf.

gdk-pixbuf-xlib has been deprecated and split off of gdk-pixbuf since
version 2.42.0 and
3362e94c25
resulting in the following "hidden" warnings with xscreensaver since
commit a7b51ed301:

   Warning: GTK version 2.24.33 was found, but at least one supporting
            library (gdk-pixbuf-xlib-2.0) was not, so GTK can't be used.
            Perhaps some of the development packages are not installed?

   Warning: The GTK libraries do not seem to be available; the
            `xscreensaver-demo' program requires them.

   Warning: The GDK-Pixbuf library was not found.

            The PNG library is being used instead.

            Some of the demos will not use images as much as they could.
            You should consider installing GDK-Pixbuf and re-running
            configure.

https://gitlab.gnome.org/Archive/gdk-pixbuf-xlib

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fabrice Fontaine 2022-03-02 18:44:55 +01:00 committed by Peter Korsgaard
parent 5dc3cfbff1
commit 559df4ef28
5 changed files with 40 additions and 0 deletions

View File

@ -877,6 +877,7 @@ F: package/duktape/
F: package/expat/
F: package/flatbuffers/
F: package/freeipmi/
F: package/gdk-pixbuf-xlib/
F: package/gerbera/
F: package/gtksourceview/
F: package/gssdp/

View File

@ -1492,6 +1492,7 @@ menu "Graphics"
source "package/freetype/Config.in"
source "package/gd/Config.in"
source "package/gdk-pixbuf/Config.in"
source "package/gdk-pixbuf-xlib/Config.in"
source "package/giblib/Config.in"
source "package/giflib/Config.in"
source "package/granite/Config.in"

View File

@ -0,0 +1,17 @@
config BR2_PACKAGE_GDK_PIXBUF_XLIB
bool "gdk-pixbuf-xlib"
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_MMU # gdk-pixbuf -> glib2
depends on BR2_USE_WCHAR # gdk-pixbuf -> glib2
depends on BR2_TOOLCHAIN_HAS_THREADS # gdk-pixbuf -> glib2
select BR2_PACKAGE_GDK_PIXBUF
select BR2_PACKAGE_XLIB_LIBX11
help
Deprecated Xlib integration for GdkPixbuf.
https://gitlab.gnome.org/Archive/gdk-pixbuf-xlib
comment "gdk-pixbuf-xlib needs a toolchain w/ wchar, threads"
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS

View File

@ -0,0 +1,5 @@
# From https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf-xlib/2.40/gdk-pixbuf-xlib-2.40.2.sha256sum
sha256 8b8e1c270ec16a06f665ea841f8e4e167eaa0118d0cbfeeade43745f09198ff7 gdk-pixbuf-xlib-2.40.2.tar.xz
# Hash for license file
sha256 dc626520dcd53a22f727af3ee42c770e56c97a64fe3adb063799d8ab032fe551 COPYING

View File

@ -0,0 +1,16 @@
################################################################################
#
# gdk-pixbuf-xlib
#
################################################################################
GDK_PIXBUF_XLIB_VERSION_MAJOR = 2.40
GDK_PIXBUF_XLIB_VERSION = $(GDK_PIXBUF_XLIB_VERSION_MAJOR).2
GDK_PIXBUF_XLIB_SOURCE = gdk-pixbuf-xlib-$(GDK_PIXBUF_XLIB_VERSION).tar.xz
GDK_PIXBUF_XLIB_SITE = http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf-xlib/$(GDK_PIXBUF_XLIB_VERSION_MAJOR)
GDK_PIXBUF_XLIB_LICENSE = LGPL-2.1+
GDK_PIXBUF_XLIB_LICENSE_FILES = COPYING
GDK_PIXBUF_XLIB_INSTALL_STAGING = YES
GDK_PIXBUF_XLIB_DEPENDENCIES = gdk-pixbuf xlib_libX11
$(eval $(meson-package))