2013-05-29 15:45:58 +00:00
|
|
|
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 \
|
2015-04-01 18:36:47 +00:00
|
|
|
docbook-utils-native gdk-pixbuf-native libepoxy"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+"
|
|
|
|
|
2015-09-28 10:53:35 +00:00
|
|
|
inherit autotools pkgconfig gtk-doc update-alternatives gtk-immodules-cache gsettings distro_features_check
|
|
|
|
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
# 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
|
2013-05-29 18:15:16 +00:00
|
|
|
rm -f libtool
|
|
|
|
ln -s ${TARGET_PREFIX}libtool libtool
|
2013-05-29 15:45:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
EXTRA_OECONF += " \
|
|
|
|
--disable-glibtest \
|
|
|
|
--disable-xinerama \
|
|
|
|
--enable-modules \
|
|
|
|
--disable-cups \
|
|
|
|
--disable-introspection \
|
|
|
|
"
|
|
|
|
|
2014-04-24 18:59:20 +00:00
|
|
|
PACKAGECONFIG ??= "${@bb.utils.contains("DISTRO_FEATURES", "x11", "x11", "", d)} \
|
2015-10-21 13:25:31 +00:00
|
|
|
${@bb.utils.contains("DISTRO_FEATURES", "opengl x11", "glx", "", d)} \
|
2014-04-24 18:59:20 +00:00
|
|
|
${@bb.utils.contains("DISTRO_FEATURES", "wayland", "wayland", "", d)}"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
PACKAGECONFIG[x11] = "--enable-x11-backend,--disable-x11-backend,at-spi2-atk fontconfig libx11 libxext libxcursor libxi libxdamage libxrandr libxrender libxcomposite libxfixes"
|
2015-10-21 13:25:31 +00:00
|
|
|
PACKAGECONFIG[glx] = "--enable-glx,--disable-glx,,libgl"
|
2015-04-01 18:36:47 +00:00
|
|
|
PACKAGECONFIG[wayland] = "--enable-wayland-backend,--disable-wayland-backend,wayland libxkbcommon virtual/mesa"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
do_install_append() {
|
|
|
|
mv ${D}${bindir}/gtk-update-icon-cache ${D}${bindir}/gtk-update-icon-cache-3.0
|
|
|
|
}
|
|
|
|
|
|
|
|
PACKAGES =+ "${PN}-demo"
|
|
|
|
LIBV = "3.0.0"
|
|
|
|
|
|
|
|
FILES_${PN}-demo = "${bindir}/gtk3-demo \
|
|
|
|
${bindir}/gtk3-demo-application \
|
2015-04-01 18:36:47 +00:00
|
|
|
${bindir}/gtk3-icon-browser \
|
2013-05-29 15:45:58 +00:00
|
|
|
${bindir}/gtk3-widget-factory \
|
2014-09-08 11:58:34 +00:00
|
|
|
${datadir}/gtk-3.0/demo \
|
|
|
|
${datadir}/applications/gtk3-demo.desktop \
|
2015-04-01 18:36:47 +00:00
|
|
|
${datadir}/applications/gtk3-icon-browser.desktop \
|
2014-09-08 11:58:34 +00:00
|
|
|
${datadir}/applications/gtk3-widget-factory.desktop \
|
2015-04-01 18:36:47 +00:00
|
|
|
${datadir}/icons/hicolor/*/apps/gtk3-demo*.png \
|
|
|
|
${datadir}/icons/hicolor/*/apps/gtk3-widget-factory*.png"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
# The demo uses PNG files and mime type sniffing, so ensure that these
|
|
|
|
# dependencies are present.
|
2015-10-21 13:25:31 +00:00
|
|
|
RDEPENDS_${PN}-demo += "gdk-pixbuf-loader-png shared-mime-info"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
FILES_${PN} = "${bindir}/gtk-update-icon-cache-3.0 \
|
|
|
|
${bindir}/gtk-query-immodules-3.0 \
|
|
|
|
${bindir}/gtk-launch \
|
|
|
|
${libdir}/lib*${SOLIBS} \
|
|
|
|
${datadir}/themes ${sysconfdir} ${datadir}/glib-2.0/schemas/ \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/engines/libpixmap.so \
|
|
|
|
${libdir}/gtk-3.0/modules/*.so"
|
|
|
|
|
|
|
|
FILES_${PN}-dev += " \
|
|
|
|
${datadir}/gtk-3.0/gtkbuilder.rng \
|
|
|
|
${datadir}/gtk-3.0/include \
|
|
|
|
${libdir}/gtk-3.0/include \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/loaders/*.la \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/immodules/*.la \
|
|
|
|
${libdir}/gtk-3.0/3.0.0/printbackends/*.la \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/engines/*.la \
|
|
|
|
${libdir}/gtk-3.0/modules/*.la \
|
2015-04-01 18:36:47 +00:00
|
|
|
${bindir}/gtk-builder-convert \
|
|
|
|
${bindir}/gtk-encode-symbolic-svg"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
FILES_${PN}-dbg += " \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/loaders/.debug \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/immodules/.debug \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/engines/.debug \
|
|
|
|
${libdir}/gtk-3.0/${LIBV}/printbackends/.debug \
|
|
|
|
${libdir}/gtk-3.0/modules/.debug"
|
|
|
|
|
2015-04-01 18:36:47 +00:00
|
|
|
RRECOMMENDS_${PN} = "adwaita-icon-theme-symbolic"
|
2013-05-29 15:45:58 +00:00
|
|
|
|
|
|
|
PACKAGES_DYNAMIC += "^gtk3-immodule-.* ^gtk3-printbackend-.*"
|
|
|
|
|
|
|
|
ALTERNATIVE_${PN} = "gtk-update-icon-cache"
|
|
|
|
ALTERNATIVE_TARGET[gtk-update-icon-cache] = "${bindir}/gtk-update-icon-cache-3.0"
|
|
|
|
|
|
|
|
python populate_packages_prepend () {
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
gtk_libdir = d.expand('${libdir}/gtk-3.0/${LIBV}')
|
|
|
|
immodules_root = os.path.join(gtk_libdir, 'immodules')
|
|
|
|
printmodules_root = os.path.join(gtk_libdir, 'printbackends');
|
|
|
|
|
2013-08-29 16:28:55 +00:00
|
|
|
immodules = do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk3-immodule-%s', 'GTK input module for %s')
|
|
|
|
if immodules:
|
|
|
|
d.setVar("GTKIMMODULES_PACKAGES", " ".join(immodules))
|
|
|
|
|
2013-05-29 15:45:58 +00:00
|
|
|
do_split_packages(d, printmodules_root, '^libprintbackend-(.*)\.so$', 'gtk3-printbackend-%s', 'GTK printbackend module for %s')
|
|
|
|
|
|
|
|
if (d.getVar('DEBIAN_NAMES', 1)):
|
2014-10-01 09:33:44 +00:00
|
|
|
d.setVar('PKG_${PN}', '${MLPREFIX}libgtk-3.0')
|
2013-05-29 15:45:58 +00:00
|
|
|
}
|
|
|
|
|