diff options
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.bb | 104 |
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 @@ | |||
1 | SUMMARY = "Image loading library for GTK+" | ||
2 | HOMEPAGE = "http://www.gtk.org/" | ||
3 | BUGTRACKER = "https://bugzilla.gnome.org/" | ||
4 | |||
5 | LICENSE = "LGPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ | ||
7 | file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=72b39da7cbdde2e665329fef618e1d6b" | ||
8 | |||
9 | SECTION = "libs" | ||
10 | |||
11 | DEPENDS = "glib-2.0" | ||
12 | DEPENDS_append_linuxstdbase = " virtual/libx11" | ||
13 | |||
14 | MAJ_VER = "${@oe.utils.trim_version("${PV}", 2)}" | ||
15 | |||
16 | SRC_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 | |||
23 | SRC_URI[md5sum] = "1195d26f14adfe99ff0878d37678a70a" | ||
24 | SRC_URI[sha256sum] = "0aafc365eab1083a53f15e4828333b968219ffcb1a995ac6289c0147c9ffad06" | ||
25 | |||
26 | inherit autotools pkgconfig gettext pixbufcache ptest | ||
27 | |||
28 | LIBV = "2.10.0" | ||
29 | |||
30 | GDK_PIXBUF_LOADERS ?= "png jpeg" | ||
31 | |||
32 | PACKAGECONFIG ??= "${GDK_PIXBUF_LOADERS}" | ||
33 | PACKAGECONFIG_linuxstdbase = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} ${GDK_PIXBUF_LOADERS}" | ||
34 | PACKAGECONFIG_class-native = "${GDK_PIXBUF_LOADERS}" | ||
35 | |||
36 | PACKAGECONFIG[png] = "--with-libpng,--without-libpng,libpng" | ||
37 | PACKAGECONFIG[jpeg] = "--with-libjpeg,--without-libjpeg,jpeg" | ||
38 | PACKAGECONFIG[tiff] = "--with-libtiff,--without-libtiff,tiff" | ||
39 | PACKAGECONFIG[jpeg2000] = "--with-libjasper,--without-libjasper,jasper" | ||
40 | |||
41 | # Use GIO to sniff image format instead of trying all loaders | ||
42 | PACKAGECONFIG[gio-sniff] = "--enable-gio-sniffing,--disable-gio-sniffing,,shared-mime-info" | ||
43 | PACKAGECONFIG[x11] = "--with-x11,--without-x11,virtual/libx11" | ||
44 | |||
45 | EXTRA_OECONF = "\ | ||
46 | --disable-introspection \ | ||
47 | ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '--enable-installed-tests', '--disable-installed-tests', d)} \ | ||
48 | " | ||
49 | |||
50 | PACKAGES =+ "${PN}-xlib" | ||
51 | |||
52 | FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}" | ||
53 | ALLOW_EMPTY_${PN}-xlib = "1" | ||
54 | |||
55 | FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \ | ||
56 | ${bindir}/gdk-pixbuf-pixdata \ | ||
57 | ${libdir}/lib*.so.*" | ||
58 | |||
59 | FILES_${PN}-dev += " \ | ||
60 | ${bindir}/gdk-pixbuf-csource \ | ||
61 | ${includedir}/* \ | ||
62 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \ | ||
63 | " | ||
64 | |||
65 | FILES_${PN}-dbg += " \ | ||
66 | ${libdir}/.debug/* \ | ||
67 | ${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \ | ||
68 | " | ||
69 | |||
70 | FILES_${PN}-ptest += "${libdir}/gdk-pixbuf/installed-tests \ | ||
71 | ${datadir}/installed-tests/gdk-pixbuf" | ||
72 | |||
73 | RDEPENDS_${PN}-ptest += "gnome-desktop-testing" | ||
74 | |||
75 | PACKAGES_DYNAMIC += "^gdk-pixbuf-loader-.*" | ||
76 | PACKAGES_DYNAMIC_class-native = "" | ||
77 | |||
78 | python 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 | |||
91 | do_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 | } | ||
104 | BBCLASSEXTEND = "native" | ||