summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gtk+/gtk+.inc
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 01:05:19 (GMT)
committerTudor Florea <tudor.florea@enea.com>2014-10-16 01:05:19 (GMT)
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-gnome/gtk+/gtk+.inc
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+.inc')
-rw-r--r--meta/recipes-gnome/gtk+/gtk+.inc90
1 files changed, 90 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+.inc b/meta/recipes-gnome/gtk+/gtk+.inc
new file mode 100644
index 0000000..73d624c
--- /dev/null
+++ b/meta/recipes-gnome/gtk+/gtk+.inc
@@ -0,0 +1,90 @@
1SUMMARY = "Multi-platform toolkit for creating GUIs"
2DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \
3set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
4HOMEPAGE = "http://www.gtk.org"
5BUGTRACKER = "https://bugzilla.gnome.org/"
6
7LICENSE = "LGPLv2 & LGPLv2+ & LGPLv2.1+"
8
9LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7"
10
11SECTION = "libs"
12
13X11DEPENDS = "virtual/libx11 libxext libxcursor libxrandr libxdamage libxrender libxcomposite"
14DEPENDS = "glib-2.0 pango atk jpeg libpng gdk-pixbuf-native docbook-utils-native \
15 cairo gdk-pixbuf"
16
17PACKAGECONFIG ??= "${@base_contains('DISTRO_FEATURES', 'x11', 'x11', '', d)}"
18
19PACKAGECONFIG[x11] = "--with-x=yes --with-gdktarget=x11,--with-x=no,${X11DEPENDS}"
20
21inherit autotools gtk-doc pkgconfig update-alternatives gtk-immodules-cache
22
23PACKAGES += "libgail gtk-demo"
24
25FILES_${PN} = "${bindir}/gtk-update-icon-cache-2.0 \
26 ${bindir}/gtk-query-immodules-2.0 \
27 ${libdir}/lib*${SOLIBS} \
28 ${datadir}/themes ${sysconfdir} \
29 ${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so"
30
31FILES_${PN}-dev += " \
32 ${datadir}/gtk-2.0/include \
33 ${libdir}/gtk-2.0/include \
34 ${libdir}/gtk-2.0/modules/*.la \
35 ${libdir}/gtk-2.0/${LIBV}/loaders/*.la \
36 ${libdir}/gtk-2.0/${LIBV}/immodules/*.la \
37 ${libdir}/gtk-2.0/${LIBV}/printbackends/*.la \
38 ${libdir}/gtk-2.0/${LIBV}/engines/*.la \
39 ${bindir}/gtk-builder-convert"
40
41FILES_${PN}-dbg += " \
42 ${libdir}/gtk-2.0/modules/.debug/* \
43 ${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \
44 ${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \
45 ${libdir}/gtk-2.0/${LIBV}/engines/.debug/* \
46 ${libdir}/gtk-2.0/${LIBV}/printbackends/.debug/*"
47
48FILES_gtk-demo = " \
49 ${datadir}/gtk-2.0/demo/* \
50 ${bindir}/gtk-demo \
51 "
52
53FILES_libgail = " \
54 ${libdir}/gtk-2.0/modules/libgail.so \
55 ${libdir}/gtk-2.0/modules/libferret.so \
56 "
57
58GTKBASE_RRECOMMENDS ?= "liberation-fonts gdk-pixbuf-loader-png gdk-pixbuf-loader-jpeg gdk-pixbuf-loader-gif gdk-pixbuf-loader-xpm shared-mime-info"
59GTKGLIBC_RRECOMMENDS ?= "${GTKBASE_RRECOMMENDS} glibc-gconv-iso8859-1"
60
61RRECOMMENDS_${PN} = "${GTKBASE_RRECOMMENDS}"
62RRECOMMENDS_${PN}_libc-glibc = "${GTKGLIBC_RRECOMMENDS}"
63
64ALTERNATIVE_${PN} = "gtk-update-icon-cache"
65ALTERNATIVE_TARGET[gtk-update-icon-cache] = "${bindir}/gtk-update-icon-cache-2.0"
66
67do_install () {
68 autotools_do_install
69
70 install -d ${D}${sysconfdir}/gtk-2.0
71
72 mkdir -p ${D}${libdir}/gtk-2.0/include
73 install -m 0644 gdk/gdkconfig.h ${D}${libdir}/gtk-2.0/include/gdkconfig.h
74
75 install -m 0644 ${S}/gtk/gtkfilechooserprivate.h ${D}${includedir}/gtk-2.0/gtk/
76 install -m 0644 ${S}/gtk/gtkfilechooserutils.h ${D}${includedir}/gtk-2.0/gtk/
77 install -m 0644 ${S}/gtk/gtkfilesystemmodel.h ${D}${includedir}/gtk-2.0/gtk/
78
79 mv ${D}${bindir}/gtk-update-icon-cache ${D}${bindir}/gtk-update-icon-cache-2.0
80}
81
82SYSROOT_PREPROCESS_FUNCS += "gtk_sysroot_preprocess"
83
84gtk_sysroot_preprocess () {
85 if [ -e ${D}${bindir}/gtk-builder-convert ]; then
86 install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/
87 install -m 755 ${D}${bindir}/gtk-builder-convert ${SYSROOT_DESTDIR}${bindir_crossscripts}/
88 fi
89}
90