Bruce Leidl
64d91cb68c
Updated Recipes * colord 1.4.5 * dconf 0.40.0 * gdm 40.0 * geoclue 2.5.7 * geocode-glib 3.26.2 * gevix2_ 0.12.1 * gjs 1.68.0 * glib2 2.68.0 * gnome-autoar 0.3.1 * gnome-backgrounds 40.0 * gnome-control-center 40.0 * gnome-desktop 40.0 * gnome-disk-utility 40.1 * gnome-keyring 40.0 * gnome-screenshot 40.0 * gnome-session 40.1.1 * gnome-settings-daemon 40.0.1 * gnome-shell 40.0 * gnome-system-monitor 40.1 * gnome-terminal 3.40.1 * gsettings-desktop-schemas 40.0 * ibus 1.5.23 * iwd 1.13 * kernel 5.12.1 * keyutils 1.6.1 * libgee 0.20.4 * libgit2 1.1.0 * libgweather 40.0 * libhandy 1.2.0 (poky) * libseccomp 2.5.1 * libssh2 1.9.0 (poky) * lvm2 2.03.11 * meson 0.57.1 (poky) * mutter 40.0 * nano 5.6 * NetworkManager 1.30.2 * network-manager-applet 1.18.0 * nspr 4.29 * pango 1.48.2 (poky) * plymouth 0.9.5+git * udisks 2.9.2 * upower 0.99.11 * vte 0.64.0 * yelp-tools 3.32.2 * yelp-xsl 3.36.0
76 lines
2.6 KiB
PHP
76 lines
2.6 KiB
PHP
SUMMARY = "Multi-platform toolkit for creating GUIs"
|
|
DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \
|
|
set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
|
|
HOMEPAGE = "http://www.gtk.org"
|
|
BUGTRACKER = "https://bugzilla.gnome.org/"
|
|
SECTION = "libs"
|
|
|
|
DEPENDS = "glib-2.0 cairo pango atk jpeg libpng gdk-pixbuf libepoxy graphene libxi sassc-native \
|
|
gdk-pixbuf-native wayland wayland-protocols libxkbcommon virtual/egl virtual/libgles2 wayland-native"
|
|
|
|
LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+"
|
|
|
|
|
|
GNOMEBASEBUILDCLASS = "meson"
|
|
GIR_MESON_ENABLE_FLAG = "enabled"
|
|
GIR_MESON_DISABLE_FLAG = "disbled"
|
|
GTKDOC_MESON_OPTION = "gtk_doc"
|
|
|
|
inherit gnomebase gettext pkgconfig gtk-doc update-alternatives gtk-immodules-cache gsettings features_check gobject-introspection
|
|
|
|
# versions >= 3.90 are development versions, otherwise like upstream-version-is-even
|
|
UPSTREAM_CHECK_REGEX = "[^\d\.](?P<pver>3\.([1-8]?[02468])+(\.\d+)+)\.tar"
|
|
|
|
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
|
|
|
# This should be in autotools.bbclass, but until something elses uses it putting
|
|
# it here avoids rebuilding everything.
|
|
export PKG_CONFIG_FOR_BUILD = "${STAGING_BINDIR_NATIVE}/pkg-config-native"
|
|
|
|
do_configure_prepend() {
|
|
# Do this because the configure script is running ./libtool directly
|
|
rm -f libtool
|
|
ln -s ${TARGET_PREFIX}libtool libtool
|
|
#delete a file that will get confused with generated one in ${B}
|
|
rm -f ${S}/gtk/gtktypefuncs.c
|
|
}
|
|
|
|
EXTRA_OEMESON += " \
|
|
-Ddemos=false \
|
|
"
|
|
|
|
do_compile_prepend() {
|
|
export GIR_EXTRA_LIBS_PATH="${B}/gdk/.libs"
|
|
}
|
|
|
|
LIBV = "4.0.0"
|
|
|
|
|
|
FILES_${PN}_append = " ${datadir}/gtk-4.0/emoji "
|
|
|
|
FILES_${PN}-dev += "\
|
|
${datadir}/gtk-4.0/valgrind \
|
|
${datadir}/gtk-4.0/gtk4builder.rng \
|
|
${datadir}/gettext/its \
|
|
"
|
|
|
|
RDEPENDS_${PN}-dev += "${@bb.utils.contains("PACKAGECONFIG", "wayland", "wayland-protocols", "", d)}"
|
|
|
|
|
|
python populate_packages_prepend () {
|
|
import os.path
|
|
|
|
gtk_libdir = d.expand('${libdir}/gtk-4.0/${LIBV}')
|
|
immodules_root = os.path.join(gtk_libdir, 'immodules')
|
|
printmodules_root = os.path.join(gtk_libdir, 'printbackends');
|
|
|
|
immodules = do_split_packages(d, immodules_root, r'^im-(.*)\.so$', 'gtk4-immodule-%s', 'GTK input module for %s')
|
|
if immodules:
|
|
d.setVar("GTKIMMODULES_PACKAGES", " ".join(immodules))
|
|
|
|
do_split_packages(d, printmodules_root, r'^libprintbackend-(.*)\.so$', 'gtk4-printbackend-%s', 'GTK printbackend module for %s')
|
|
|
|
if (d.getVar('DEBIAN_NAMES')):
|
|
d.setVar(d.expand('PKG_${PN}'), '${MLPREFIX}libgtk-4.0')
|
|
}
|