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