2011-01-30 12:28:58 +00:00
|
|
|
DESCRIPTION = "Image loading library for GTK+"
|
|
|
|
HOMEPAGE = "http://www.gtk.org/"
|
|
|
|
BUGTRACKER = "https://bugzilla.gnome.org/"
|
2010-11-25 06:42:43 +00:00
|
|
|
|
2011-01-30 12:28:58 +00:00
|
|
|
LICENSE = "LGPLv2"
|
|
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \
|
|
|
|
file://gdk-pixbuf/gdk-pixbuf.h;endline=26;md5=5066b71daefeff678494fffa3040aba9"
|
2011-01-30 06:11:57 +00:00
|
|
|
|
2011-01-30 12:28:58 +00:00
|
|
|
SECTION = "libs"
|
|
|
|
|
2011-04-01 04:06:26 +00:00
|
|
|
DEPENDS = "libpng glib-2.0 jpeg"
|
2012-05-15 18:43:37 +00:00
|
|
|
DEPENDS_append_linuxstdbase = " virtual/libx11"
|
2010-11-25 06:42:43 +00:00
|
|
|
|
2012-03-15 06:16:55 +00:00
|
|
|
SRC_URI = "http://ftp.acc.umu.se/pub/GNOME/sources/gdk-pixbuf/2.24/gdk-pixbuf-${PV}.tar.xz \
|
2012-03-08 01:44:02 +00:00
|
|
|
file://configure_nm.patch \
|
2011-08-18 00:17:52 +00:00
|
|
|
file://hardcoded_libtool.patch \
|
|
|
|
file://configure_fix.patch \
|
2012-08-03 03:30:21 +00:00
|
|
|
file://extending-libinstall-dependencies.patch \
|
2011-01-30 12:28:58 +00:00
|
|
|
"
|
|
|
|
|
2012-03-15 06:16:55 +00:00
|
|
|
SRC_URI[md5sum] = "72f39b34b20f68148c1609bd27415412"
|
2012-03-30 13:19:07 +00:00
|
|
|
SRC_URI[sha256sum] = "da7a3f00db360913716368e19e336402755cafa93769f3cfa28a969303e4bee1"
|
2011-01-30 12:28:58 +00:00
|
|
|
|
2012-08-03 03:30:21 +00:00
|
|
|
PR = "r4"
|
2011-12-13 17:08:42 +00:00
|
|
|
|
2011-04-01 04:06:26 +00:00
|
|
|
inherit autotools pkgconfig gettext
|
2011-01-30 12:28:58 +00:00
|
|
|
|
|
|
|
LIBV = "2.10.0"
|
|
|
|
|
|
|
|
EXTRA_OECONF = "\
|
|
|
|
--without-libtiff \
|
|
|
|
--with-libpng \
|
2012-05-11 07:23:15 +00:00
|
|
|
${X11DEPENDS} \
|
2011-07-16 22:48:34 +00:00
|
|
|
--disable-introspection \
|
2011-01-30 12:28:58 +00:00
|
|
|
"
|
2012-05-11 07:23:15 +00:00
|
|
|
X11DEPENDS = "--without-x11"
|
|
|
|
X11DEPENDS_linuxstdbase = "${@base_contains('DISTRO_FEATURES', 'x11', '--with-x11', '--without-x11', d)}"
|
|
|
|
|
|
|
|
PACKAGES =+ "${PN}-xlib"
|
|
|
|
|
|
|
|
FILES_${PN}-xlib = "${libdir}/*pixbuf_xlib*${SOLIBS}"
|
2012-05-15 17:49:09 +00:00
|
|
|
ALLOW_EMPTY_${PN}-xlib = "1"
|
2011-01-30 12:28:58 +00:00
|
|
|
|
2010-11-25 06:42:43 +00:00
|
|
|
FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
|
|
|
|
${libdir}/lib*.so.*"
|
|
|
|
|
|
|
|
FILES_${PN}-dev += " \
|
|
|
|
${bindir}/gdk-pixbuf-csource \
|
2011-07-16 23:34:56 +00:00
|
|
|
${includedir}/* \
|
|
|
|
${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/*.la \
|
|
|
|
"
|
2010-11-25 06:42:43 +00:00
|
|
|
|
|
|
|
FILES_${PN}-dbg += " \
|
|
|
|
${libdir}/.debug/* \
|
2011-07-16 23:34:56 +00:00
|
|
|
${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders/.debug/* \
|
|
|
|
"
|
2010-11-25 06:42:43 +00:00
|
|
|
|
|
|
|
postinst_pixbufloader () {
|
|
|
|
if [ "x$D" != "x" ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
GDK_PIXBUF_MODULEDIR=${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders gdk-pixbuf-query-loaders --update-cache
|
|
|
|
|
|
|
|
test -x ${bindir}/gtk-update-icon-cache && gtk-update-icon-cache -q ${datadir}/icons/hicolor
|
|
|
|
}
|
|
|
|
|
|
|
|
PACKAGES_DYNAMIC += "gdk-pixbuf-loader-*"
|
2011-01-30 12:28:58 +00:00
|
|
|
PACKAGES_DYNAMIC_virtclass-native = ""
|
2010-11-25 06:42:43 +00:00
|
|
|
|
|
|
|
python populate_packages_prepend () {
|
2012-07-11 17:33:43 +00:00
|
|
|
postinst_pixbufloader = d.getVar("postinst_pixbufloader", True)
|
2010-11-25 06:42:43 +00:00
|
|
|
|
2012-07-11 17:33:43 +00:00
|
|
|
loaders_root = d.expand('${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders')
|
2010-11-25 06:42:43 +00:00
|
|
|
|
2012-07-11 17:33:43 +00:00
|
|
|
do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s', postinst_pixbufloader)
|
2010-11-25 06:42:43 +00:00
|
|
|
}
|
|
|
|
|
2011-01-30 12:28:58 +00:00
|
|
|
do_install_append_virtclass-native() {
|
|
|
|
#Use wrapper script rather than binary as required libtool library is not installed now
|
2011-12-13 17:08:42 +00:00
|
|
|
GDK_PIXBUF_MODULEDIR=${D}${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders ${S}/gdk-pixbuf/gdk-pixbuf-query-loaders > ${D}${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
|
|
|
|
sed -i -e 's#${D}##g' ${D}${libdir}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
|
2011-01-30 12:28:58 +00:00
|
|
|
find ${D}${libdir} -name "libpixbufloader-*.la" -exec rm \{\} \;
|
2011-12-13 17:08:42 +00:00
|
|
|
|
|
|
|
create_wrapper ${D}/${bindir}/gdk-pixbuf-csource \
|
|
|
|
GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
|
2012-03-15 06:16:55 +00:00
|
|
|
|
2011-12-13 17:08:42 +00:00
|
|
|
create_wrapper ${D}/${bindir}/gdk-pixbuf-query-loaders \
|
|
|
|
GDK_PIXBUF_MODULE_FILE=${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/${LIBV}/loaders.cache
|
2011-01-30 12:28:58 +00:00
|
|
|
}
|
|
|
|
BBCLASSEXTEND = "native"
|