Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "A general-purpose utility library" |
| 2 | DESCRIPTION = "GLib is a general-purpose utility library, which provides many useful data types, macros, type conversions, string utilities, file utilities, a main loop abstraction, and so on." |
| 3 | HOMEPAGE = "https://developer.gnome.org/glib/" |
| 4 | |
| 5 | # pcre is under BSD; |
| 6 | # docs/reference/COPYING is with a 'public domai'-like license! |
| 7 | LICENSE = "LGPLv2+ & BSD & PD" |
| 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ |
| 9 | file://glib/glib.h;beginline=4;endline=17;md5=b4f0f4a399c19e5ebb20c31b79d6bc32 \ |
| 10 | file://gmodule/COPYING;md5=3bf50002aefd002f49e7bb854063f7e7 \ |
| 11 | file://gmodule/gmodule.h;beginline=4;endline=17;md5=b4f0f4a399c19e5ebb20c31b79d6bc32 \ |
| 12 | file://glib/pcre/COPYING;md5=266ebc3ff74ee9ce6fad65577667c0f4 \ |
| 13 | file://glib/pcre/pcre.h;beginline=11;endline=35;md5=de27f2bf633d20a2b7af0b1983423283 \ |
| 14 | file://docs/reference/COPYING;md5=f51a5100c17af6bae00735cd791e1fcc" |
| 15 | BUGTRACKER = "http://bugzilla.gnome.org" |
| 16 | SECTION = "libs" |
| 17 | |
| 18 | BBCLASSEXTEND = "native nativesdk" |
| 19 | |
| 20 | DEPENDS = "glib-2.0-native virtual/libiconv libffi zlib" |
| 21 | DEPENDS_append_class-target = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', ' dbus', '', d)}" |
| 22 | DEPENDS_class-native = "pkgconfig-native gettext-native libffi-native zlib-native" |
| 23 | DEPENDS_class-nativesdk = "nativesdk-libtool nativesdk-gettext nativesdk-libffi nativesdk-zlib ${BPN}-native" |
| 24 | |
| 25 | PACKAGES =+ "${PN}-utils ${PN}-bash-completion ${PN}-codegen" |
| 26 | |
| 27 | LEAD_SONAME = "libglib-2.0.*" |
| 28 | FILES_${PN}-utils = "${bindir}/* ${datadir}/glib-2.0/gettext" |
| 29 | |
| 30 | inherit autotools gettext gtk-doc pkgconfig ptest-gnome |
| 31 | |
| 32 | S = "${WORKDIR}/glib-${PV}" |
| 33 | |
| 34 | CORECONF = "--disable-dtrace --disable-fam --disable-libelf --disable-systemtap --disable-man" |
| 35 | |
| 36 | PRINTF = "--enable-included-printf=no" |
| 37 | PRINTF_darwin = "--enable-included-printf=yes" |
| 38 | PRINTF_mingw32 = "--enable-included-printf=yes" |
| 39 | EXTRA_OECONF = "${PRINTF} ${CORECONF}" |
| 40 | EXTRA_OECONF_class-native = "${CORECONF} --disable-selinux" |
| 41 | EXTRA_OECONF_append_libc-uclibc = " --with-libiconv=gnu" |
| 42 | |
| 43 | do_configure_prepend() { |
| 44 | sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in |
| 45 | } |
| 46 | |
| 47 | FILES_${PN} = "${libdir}/lib*${SOLIBS} ${libdir}/gio ${datadir}/glib-2.0/schemas \ |
| 48 | ${datadir}/glib-2.0/gettext/mkinstalldirs ${datadir}/glib-2.0/gettext/po/Makefile.in.in" |
| 49 | FILES_${PN}-dev += "${libdir}/glib-2.0/include \ |
| 50 | ${libdir}/gio/modules/lib*${SOLIBSDEV} \ |
| 51 | ${libdir}/gio/modules/*.la" |
| 52 | FILES_${PN}-dbg += "${datadir}/glib-2.0/gdb ${datadir}/gdb \ |
| 53 | ${libdir}/gio/modules/.debug \ |
| 54 | ${libdir}/glib-2.0/installed-tests/glib/.debug" |
| 55 | FILES_${PN}-codegen = "${datadir}/glib-2.0/codegen/*.py" |
| 56 | FILES_${PN}-bash-completion = "${sysconfdir}/bash_completion.d \ |
| 57 | ${datadir}/bash-completion" |
| 58 | |
| 59 | ARM_INSTRUCTION_SET = "arm" |
| 60 | USE_NLS = "yes" |
| 61 | |
| 62 | do_install_append () { |
| 63 | if [ -f ${D}${bindir}/gtester-report ]; then |
| 64 | sed ${D}${bindir}/gtester-report -i -e '1s|^#!.*|#!/usr/bin/env python|' |
| 65 | fi |
| 66 | |
| 67 | # Remove some unpackaged files |
| 68 | rm -f ${D}${datadir}/glib-2.0/codegen/*.pyc |
| 69 | rm -f ${D}${datadir}/glib-2.0/codegen/*.pyo |
| 70 | |
| 71 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location |
| 72 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. |
| 73 | if [ -f ${D}${bindir}/glib-mkenums ]; then |
| 74 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/glib-mkenums |
| 75 | fi |
| 76 | } |
| 77 | |
| 78 | RDEPENDS_${PN}-ptest += "\ |
| 79 | gnome-desktop-testing \ |
| 80 | tzdata \ |
| 81 | tzdata-americas \ |
| 82 | tzdata-asia \ |
| 83 | tzdata-europe \ |
| 84 | tzdata-posix \ |
| 85 | python-pygobject \ |
| 86 | python-dbus \ |
| 87 | shared-mime-info \ |
| 88 | " |
| 89 | |
| 90 | RDEPENDS_${PN}-ptest_append_libc-glibc = "\ |
| 91 | glibc-gconv-utf-16 \ |
| 92 | glibc-charmap-utf-8 \ |
| 93 | glibc-gconv-cp1255 \ |
| 94 | glibc-charmap-cp1255 \ |
| 95 | glibc-gconv-utf-32 \ |
| 96 | glibc-gconv-utf-7 \ |
| 97 | glibc-gconv-euc-jp \ |
| 98 | glibc-gconv-iso8859-1 \ |
| 99 | glibc-gconv-iso8859-15 \ |
| 100 | glibc-charmap-invariant \ |
| 101 | glibc-localedata-translit-cjk-variants \ |
| 102 | " |
| 103 | |
| 104 | INSANE_SKIP_${PN}-ptest += "libdir" |