Added glib recipe -the *native* bb files have been taken directly from OE and added...
[oespirit1] / glib-2.0 / maemo-glib.inc
1 #Kirtika B Ruchandani <kirtibr@gmail.com> 01/06/09 22:49:23  
2 #test file mostly copied over from glib.inc with modifications as needed
3
4 DESCRIPTION = "GLib is a general-purpose utility library, \
5 which provides many useful data types, macros, \
6 type conversions, string utilities, file utilities, a main \
7 loop abstraction, and so on. It works on many \
8 UNIX-like platforms, Windows, OS/2 and BeOS."
9 LICENSE = "LGPL"
10 SECTION = "libs"
11 PRIORITY = "optional"
12 DEPENDS += "glib-2.0-native gtk-doc"
13 DEPENDS += "virtual/libiconv virtual/libintl"
14 PACKAGES =+ "gobject-2.0 gmodule-2.0 gthread-2.0 gio-2.0 glib-2.0-utils "
15
16
17 LEAD_SONAME = "libglib-2.0.*"
18 FILES_glib-2.0-utils = "${bindir}/*"
19 FILES_${PN} = "${libdir}/lib*so.* ${libdir}/gio/modules/*.so"
20 FILES_${PN}-dev += "${libdir}/glib-2.0 ${datadir}/glib-2.0 ${libdir}/gio/modules/*.la"
21 FILES_${PN}-dbg += "${libdir}/gio/modules/.debug"
22 FILES_gmodule-2.0 = "${libdir}/libgmodule-2.0.so.*"
23 FILES_gobject-2.0 = "${libdir}/libgobject-2.0.so.*"
24 FILES_gio-2.0 = "${libdir}/libgio-2.0.so.*"
25 FILES_gthread-2.0 = "${libdir}/libgthread-2.0.so.*"
26
27 # Let the gthread library end up in glib package
28 # for compatibility.
29 FILES_gthread-2.0_chinook-compat = ""
30
31 EXTRA_OECONF = "--disable-debug "
32
33 # Add and entry for your favourite arch if your (g)libc has a sane printf
34 EXTRA_OECONF_append_glibc_arm = "  --enable-included-printf=no "
35
36
37 inherit autotools pkgconfig gettext
38
39 require glib-2.0.inc
40
41 acpaths = ""
42
43 do_install_append() {
44         sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g ${D}${bindir}/glib-mkenums || true
45 }
46
47 do_stage () {
48         autotools_stage_all
49         install -d ${STAGING_INCDIR}/glib-2.0/glib
50         install -m 0755 ${S}/glibconfig.h ${STAGING_INCDIR}/glib-2.0/glibconfig.h
51         install -d ${STAGING_DATADIR}/aclocal
52         install -m 0644 ${S}/m4macros/glib-2.0.m4 ${STAGING_DATADIR}/aclocal/glib-2.0.m4
53         install -m 0644 ${S}/m4macros/glib-gettext.m4 ${STAGING_DATADIR}/aclocal/glib-gettext.m4
54 }