glib-1.2: merged native and non-native recipes
authorFahad Usman <fahad_usman@mentor.com>
Wed, 8 Sep 2010 01:43:51 +0000 (01:43 +0000)
committerTom Rini <tom_rini@mentor.com>
Thu, 30 Sep 2010 21:05:23 +0000 (14:05 -0700)
* removed the glib-1.2-native_1.2.10.bb file
* added NATIVE_INSTALL_WORKS = "1"
* added BBCLASSEXTEND = "native"
* converted do_stage of native recipe to do_install_virtclass-native in the combined recipe
* added DEPENDS_pn-glib-1.2 += "glib-1.2-native", per Vitus' suggestion
* added gettext in inherit because it was needed by the native recipes
* bumped PR

Signed-off-by: Fahad Usman <fahad_usman@mentor.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/glib-1.2/glib-1.2-native_1.2.10.bb [deleted file]
recipes/glib-1.2/glib-1.2_1.2.10.bb

diff --git a/recipes/glib-1.2/glib-1.2-native_1.2.10.bb b/recipes/glib-1.2/glib-1.2-native_1.2.10.bb
deleted file mode 100644 (file)
index d00e9a1..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-PR = "r0"
-LICENSE = "LGPL"
-DESCRIPTION = "GLib 1.2 is a deprecated libray to \
-provide support for old glib 1.2 based applications"
-SECTION = "libs"
-PRIORITY = "optional"
-DEPENDS = ""
-
-FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/glib-1.2-${PV}"
-
-EXTRA_OECONF = "--disable-debug"
-
-SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v1.2/glib-${PV}.tar.gz \
-           file://glibconfig-sysdefs.h \
-           file://depcomp \
-           file://glib-reconf-fix;apply=yes \
-           file://posix-conf-changes;apply=yes \
-           file://gcc-3.4-pretty_function;apply=yes"
-
-
-S = "${WORKDIR}/glib-${PV}"
-
-inherit autotools pkgconfig native gettext
-
-acpaths = ""
-do_configure_prepend () {
-       install -m 0644 ${WORKDIR}/glibconfig-sysdefs.h .
-       install -m 0644 ${WORKDIR}/depcomp .
-       rm -f ltconfig acinclude.m4 libtool ltmain.sh
-}
-
-
-do_stage () {
-       oe_libinstall -so libglib ${STAGING_LIBDIR}
-       oe_libinstall -so -C gmodule libgmodule ${STAGING_LIBDIR}
-       oe_libinstall -so -C gthread libgthread ${STAGING_LIBDIR}
-       autotools_stage_includes
-       install -d ${STAGING_INCDIR}/glib-1.2
-       install -m 0755 ${S}/glibconfig.h ${STAGING_INCDIR}/glib-1.2/glibconfig.h
-       install -d ${STAGING_DATADIR}/aclocal
-       install -m 0644 ${S}/glib.m4 ${STAGING_DATADIR}/aclocal/glib-1.2.m4
-}
-
-do_install () {
-       :
-}
-
-SRC_URI[md5sum] = "6fe30dad87c77b91b632def29dd69ef9"
-SRC_URI[sha256sum] = "6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f"
index 72ee826..22e044d 100644 (file)
@@ -3,8 +3,8 @@ provide support for old glib 1.2 based applications"
 SECTION = "libs"
 PRIORITY = "optional"
 LICENSE = "LGPL"
-DEPENDS = "glib-1.2-native"
-PR = "r4"
+DEPENDS_pn-glib-1.2 += "glib-1.2-native"
+PR = "r5"
 
 LEAD_SONAME = "libglib-1.2.*"
 
@@ -22,7 +22,7 @@ SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v1.2/glib-${PV}.tar.gz \
 
 S = "${WORKDIR}/glib-${PV}"
 
-inherit autotools pkgconfig binconfig
+inherit autotools pkgconfig binconfig gettext
 
 acpaths = ""
 do_configure_prepend () {
@@ -31,6 +31,17 @@ do_configure_prepend () {
        rm -f ltconfig acinclude.m4 libtool ltmain.sh
 }
 
+do_install_virtclass-native () {
+        oe_libinstall -so libglib ${D}${libdir}
+        oe_libinstall -so -C gmodule libgmodule ${D}${libdir}
+        oe_libinstall -so -C gthread libgthread ${D}${libdir}
+        autotools_do_install
+        install -d ${D}${includedir}/glib-1.2
+        install -m 0644 glibconfig.h glib.h ${D}${includedir}/glib-1.2/
+        install -d ${D}${datadir}/aclocal
+        install -m 0644 ${S}/glib.m4 ${D}${datadir}/aclocal/glib-1.2.m4
+}
+
 do_install_append () {
        install -d ${D}${includedir}/glib-1.2
        install -m 0644 glibconfig.h glib.h ${D}${includedir}/glib-1.2/
@@ -42,3 +53,7 @@ FILES_${PN}-dev += "${libdir}/glib/include/glibconfig.h"
 
 SRC_URI[md5sum] = "6fe30dad87c77b91b632def29dd69ef9"
 SRC_URI[sha256sum] = "6e1ce7eedae713b11db82f11434d455d8a1379f783a79812cd2e05fc024a8d9f"
+
+BBCLASSEXTEND = "native"
+
+NATIVE_INSTALL_WORKS = "1"