summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb')
-rw-r--r--meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb104
1 files changed, 104 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb
new file mode 100644
index 0000000000..a9d1eed806
--- /dev/null
+++ b/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf_2.30.7.bb
@@ -0,0 +1,104 @@
1SUMMARY = "Image loading library for GTK+"
2HOMEPAGE = "http://www.gtk.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/"
4
5LICENSE = "LGPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
7 file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=72b39da7cbdde2e665329fef618e1d6b"
8
9SECTION = "libs"
10
11DEPENDS = "glib-2.0"
12DEPENDS_append_linuxstdbase = " virtual/libx11"
13
14MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}"
15
16SRC_URI = "${GNOME_MIRROR}/${BPN}/${MAJ_VER}/${BPN}-${PV}.tar.xz \
17 file://hardcoded_libtool.patch \
18 file://extending-libinstall-dependencies.patch \
19 file://run-ptest \
20 file://fatal-loader.patch \
21 "
22
23SRC_URI[md5sum] = "1195d26f14adfe99ff0878d37678a70a"
24SRC_URI[sha256sum] = "0aafc365eab1083a53f15e4828333b968219ffcb1a995ac6289c0147c9ffad06"
25
26inherit autotools pkgconfig gettext pixbufcache ptest
27
28LIBV = "2.10.0"
29
30GDK_PIXBUF_LOADERS ?= "png jpeg"
31
32PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}"
33PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}"
34PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}"
35
36PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng"
37PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg"
38PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff"
39PACKAGECONFIG[jpeg2000] = "--with-libjasper,--without-libjasper,jasper"
40
41# Use GIO to sniff image format instead of trying all loaders
42PACKAGECONFIG[gio-sniff] = "--enable-gio-sniffing,--disable-gio-sniffing,,shared-mime-info"
43PACKAGECONFIG[x11] = "--with-x11,--without-x11,virtual/libx11"
44
45EXTRA_OECONF = "\
46 --disable-introspection \
47 ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '--enable-installed-tests', '--disable-installed-tests', d)} \
48"
49
50PACKAGES =+ "${PN}-xlib"
51
52FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
53ALLOW_EMPTY_${PN}-xlib = "1"
54
55FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
56 ${bindir}/gdk-pixbuf-pixdata \
57 ${libdir}/lib*.so.*"
58
59FILES_${PN}-dev += " \
60 ${bindir}/gdk-pixbuf-csource \
61 ${includedir}/* \
62 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
63"
64
65FILES_${PN}-dbg += " \
66 ${libdir}/.debug/* \
67 ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \
68"
69
70FILES_${PN}-ptest += "${libdir}/gdk-pixbuf/installed-tests \
71 ${datadir}/installed-tests/gdk-pixbuf"
72
73RDEPENDS_${PN}-ptest += "gnome-desktop-testing"
74
75PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*"
76PACKAGES_DYNAMIC_class-native = ""
77
78python populate_packages_prepend () {
79 postinst_pixbufloader = d.getVar("postinst_pixbufloader", True)
80
81 loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
82
83 packages = ' '.join(do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s'))
84 d.setVar('PIXBUF_PACKAGES', packages)
85
86 # The test suite exercises all the loaders, so ensure they are all
87 # dependencies of the ptest package.
88 d.appendVar("RDEPENDS_gdk-pixbuf-ptest", " " + packages)
89}
90
91do_install_append_class-native() {
92 find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
93
94 create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
95 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
96
97 create_wrapper ${D}/${bindir}/gdk-pixbuf-pixdata \
98 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
99
100 create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \
101 GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache \
102 GDK_PIXBUF_MODULEDIR=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders
103}
104BBCLASSEXTEND = "native"