From 1afd9d9b580b7023aae38b0ca8158b064be75e97 Mon Sep 17 00:00:00 2001 From: Zhai Edwin Date: Thu, 30 Dec 2010 21:04:22 +0800 Subject: metacity: Upgrade to 2.30.3 Revised one patch from openembed to make host native binary for build. Signed-off-by: Zhai Edwin --- .../gnome/metacity/crosscompile.patch | 60 ++++++++++++++++++++++ meta/recipes-gnome/gnome/metacity_2.22.0.bb | 23 --------- meta/recipes-gnome/gnome/metacity_2.30.3.bb | 29 +++++++++++ 3 files changed, 89 insertions(+), 23 deletions(-) create mode 100644 meta/recipes-gnome/gnome/metacity/crosscompile.patch delete mode 100644 meta/recipes-gnome/gnome/metacity_2.22.0.bb create mode 100644 meta/recipes-gnome/gnome/metacity_2.30.3.bb (limited to 'meta/recipes-gnome/gnome') diff --git a/meta/recipes-gnome/gnome/metacity/crosscompile.patch b/meta/recipes-gnome/gnome/metacity/crosscompile.patch new file mode 100644 index 000000000..8d86134fa --- /dev/null +++ b/meta/recipes-gnome/gnome/metacity/crosscompile.patch @@ -0,0 +1,60 @@ +This patch is revised version from openembed. It build host native binary +rather than target binary in cross-compile environment. + +Signed-off-by: Zhai Edwin + +Index: metacity-2.30.3/src/Makefile.am +=================================================================== +--- metacity-2.30.3.orig/src/Makefile.am 2010-09-05 00:09:52.000000000 +0800 ++++ metacity-2.30.3/src/Makefile.am 2010-12-31 11:15:31.000000000 +0800 +@@ -134,11 +134,9 @@ + metacity_theme_viewer_SOURCES= \ + ui/theme-viewer.c + +-schema_bindings_SOURCES = \ +- core/schema-bindings.c \ +- metacity.schemas.in.in ++schema_bindings: ++ @CC_FOR_BUILD@ core/schema-bindings.c -I./include -I../ @CFLAGS_FOR_BUILD@ @LDFLAGS_FOR_BUILD@ -o schema_bindings + +-schema_bindings_LDADD = @METACITY_LIBS@ + metacity.schemas.in: schema_bindings ${srcdir}/metacity.schemas.in.in + @echo Generating keybinding schemas... ${srcdir}/metacity.schemas.in.in + ${builddir}/schema_bindings ${srcdir}/metacity.schemas.in.in ${builddir}/metacity.schemas.in +Index: metacity-2.30.3/configure.in +=================================================================== +--- metacity-2.30.3.orig/configure.in 2010-09-22 22:14:06.000000000 +0800 ++++ metacity-2.30.3/configure.in 2010-12-31 11:15:31.000000000 +0800 +@@ -31,6 +31,32 @@ + AC_LIBTOOL_WIN32_DLL + AM_PROG_LIBTOOL + ++if test x"$CC_FOR_BUILD" = x; then ++ if test x"$cross_compiling" = xyes; then ++ AC_CHECK_PROGS(CC_FOR_BUILD, gcc cc) ++ else ++ CC_FOR_BUILD="$CC" ++ fi ++fi ++AC_SUBST([CC_FOR_BUILD]) ++if test x"$CFLAGS_FOR_BUILD" = x; then ++ if test x"$cross_compiling" = xyes; then ++ echo boo! ++ else ++ CFLAGS_FOR_BUILD="$CFLAGS" ++ fi ++fi ++AC_SUBST([CFLAGS_FOR_BUILD]) ++if test x"$LDFLAGS_FOR_BUILD" = x; then ++ if test x"$cross_compiling" = xyes; then ++ echo boo! ++ else ++ LDFLAGS_FOR_BUILD="$LDFLAGS" ++ fi ++fi ++AC_SUBST([LDFLAGS_FOR_BUILD]) ++ ++ + #### Integer sizes + + AC_CHECK_SIZEOF(char) diff --git a/meta/recipes-gnome/gnome/metacity_2.22.0.bb b/meta/recipes-gnome/gnome/metacity_2.22.0.bb deleted file mode 100644 index e698ec439..000000000 --- a/meta/recipes-gnome/gnome/metacity_2.22.0.bb +++ /dev/null @@ -1,23 +0,0 @@ -SECTION = "x11/wm" -DESCRIPTION = "Metacity is the boring window manager for the adult in you." -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ - file://src/include/main.h;endline=24;md5=c2242df552c880280315989bab626b90" - -DEPENDS = "startup-notification gtk+ gconf gdk-pixbuf-csource-native" -PR = "r3" - -inherit gnome update-alternatives - -ALTERNATIVE_NAME = "x-window-manager" -ALTERNATIVE_LINK = "${bindir}/x-window-manager" -ALTERNATIVE_PATH = "${bindir}/metacity" -ALTERNATIVE_PRIORITY = "10" - -EXTRA_OECONF += "--disable-verbose \ - --disable-xinerama" - -FILES_${PN} += "${datadir}/themes" - -SRC_URI[archive.md5sum] = "8cb6d02cf66a1003532b4f5d2754d696" -SRC_URI[archive.sha256sum] = "3c670b41a214311006dc05f9a005696b9d3fdcb5c80f1275367416600103b3bf" diff --git a/meta/recipes-gnome/gnome/metacity_2.30.3.bb b/meta/recipes-gnome/gnome/metacity_2.30.3.bb new file mode 100644 index 000000000..6e9dd7257 --- /dev/null +++ b/meta/recipes-gnome/gnome/metacity_2.30.3.bb @@ -0,0 +1,29 @@ +SECTION = "x11/wm" +DESCRIPTION = "Metacity is the boring window manager for the adult in you." +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://src/include/main.h;endline=24;md5=c2242df552c880280315989bab626b90" + +DEPENDS = "startup-notification gtk+ gconf gdk-pixbuf-csource-native libcanberra" +PR = "r0" + +inherit gnome update-alternatives + +SRC_URI += "file://crosscompile.patch;patch=1" + +ALTERNATIVE_NAME = "x-window-manager" +ALTERNATIVE_LINK = "${bindir}/x-window-manager" +ALTERNATIVE_PATH = "${bindir}/metacity" +ALTERNATIVE_PRIORITY = "10" + +EXTRA_OECONF += "--disable-verbose \ + --disable-xinerama" + +FILES_${PN} += "${datadir}/themes" + +export CC_FOR_BUILD = "${BUILD_CC}" +export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS} -I${STAGING_LIBDIR_NATIVE}/glib-2.0/include -I${STAGING_INCDIR_NATIVE}/glib-2.0 -I${STAGING_INCDIR_NATIVE}/glib-2.0/include -I${STAGING_INCDIR_NATIVE}" +export LDFLAGS_FOR_BUILD = "${BUILD_LDFLAGS} -L${STAGING_LIBDIR_NATIVE} -lglib-2.0" + +SRC_URI[archive.md5sum] = "553784f376d96b902e19ff437cd5b339" +SRC_URI[archive.sha256sum] = "08f887018fa5e447cf184d03bae3fe2c05fdb7583bed6768e3b4d66392fc18dd" -- cgit v1.2.3